I am trying to create a script log into the admin section of wordpress and then check for updates, I already did this for drupal using the example mentioned here:
<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"
/>
and also a comment here http://drupal.org/node/147413#comment-1269222
I am however stuck with the postbody part, it wont log in the admin page.
Any thoughts?
I can tell you about the testcases we created for atlassian suite, maybe the example will help you, this case is the one we created for CONFLUENCE
TESTDATA FILE
confluence_Basic_AD_Login_testdata.xml (it first login to webapp and then checks login by checking the dashboard)
CONFIG FILE
file: confluence_Basic_AD_Login_config.xml
That’s all, and the check works with NagiosXI.
Hope it helps you.
karina