首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用webinject登录wordpress

使用webinject登录wordpress
EN

Stack Overflow用户
提问于 2010-12-13 18:08:10
回答 1查看 754关注 0票数 1

我正在尝试在wordpress的管理部分创建一个脚本日志,然后检查更新,我已经使用这里提到的示例为drupal做了此操作:

代码语言:javascript
复制
<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部分,它不会登录到管理页面。

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2016-10-20 17:33:24

我可以告诉你我们为亚特兰西安套件创建的测试用例,也许这个例子会对你有帮助,这个例子是我们为汇合而创建的。

TESTDATA文件

confluence_Basic_AD_Login_testdata.xml (它首先登录到webapp,然后通过检查仪表板检查登录)

代码语言:javascript
复制
 <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

代码语言:javascript
复制
   <testcasefile>confluence_Basic_AD_Login_testdata.xml</testcasefile>
   <useragent>WebInject Application Tester</useragent>
   <timeout>10</timeout>
   <globaltimeout>30</globaltimeout>
   <reporttype>nagios</reporttype>

仅此而已,检查与NagiosXI一起工作。希望它能帮到你。

卡莉娜

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4431979

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档