我正在尝试在wordpress的管理部分创建一个脚本日志,然后检查更新,我已经使用这里提到的示例为drupal做了此操作:
<case
id="1"
description1="short description"
description2="long description"
method="post"
url="http://myserver/test/login.jsp"
postbody="username=corey&password=welcome"
verifypositive="verify this string exists"
verifynegative="verify this string does not exist"
logrequest="yes"
logresponse="yes"
sleep="3"
/>还有一条评论,http://drupal.org/node/147413#comment-1269222
然而,我被卡在postbody部分,它不会登录到管理页面。
有什么想法吗?
发布于 2016-10-20 17:33:24
我可以告诉你我们为亚特兰西安套件创建的测试用例,也许这个例子会对你有帮助,这个例子是我们为汇合而创建的。
TESTDATA文件
confluence_Basic_AD_Login_testdata.xml (它首先登录到webapp,然后通过检查仪表板检查登录)
<testcases repeat="1">
<case
id="1"
description="Get Confluence Login Page"
method="post"
url="https://confluence.company.com/login.action"
postbody="os_username=conflumin&os_password=conflumin123"
errormessage="Unable to connect to the login page of Confluence"
verifypositive="Username"
logrequest="yes"
logresponse="yes"
/>
<case
id="2"
description="Authentication by AD to Confluence"
url="https://confluence.company.com/dashboard.action"
verifypositive="Dashboard"
errormessage="Unable to authenticate user in Confluence"
logrequest="yes"
logresponse="yes"
/>
</testcases>配置文件
文件: confluence_Basic_AD_Login_config.xml
<testcasefile>confluence_Basic_AD_Login_testdata.xml</testcasefile>
<useragent>WebInject Application Tester</useragent>
<timeout>10</timeout>
<globaltimeout>30</globaltimeout>
<reporttype>nagios</reporttype>仅此而已,检查与NagiosXI一起工作。希望它能帮到你。
卡莉娜
https://stackoverflow.com/questions/4431979
复制相似问题