web transaction test cases.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dwightharry
Posts: 2
Joined: Fri May 03, 2019 4:07 pm

web transaction test cases.

Post by dwightharry »

Hello, I'm working through the web transaction wizard. And I'm wondering what needs to change for this particular code to work for testcase 2?
In scenario 3, I actually have it sign into Web client. However, I'm curious if I can get it to navigate anywhere once signed in because all buttons/links are java based once signed in. Below is my test case scenario.

<case
id="1"
description1="Connecting to MyApplication"
method="get"
url="https://myapplication.com/ "
parseresponse='mykey="|"'
verifypositive="Login"
errormessage="Unable to connect to the login page of MyApplication"
/>
<case
id="2"
description1="Authentication on MyApplication"
method="post"
url="https://myapplication.com/login.php"
postbody="username=user1&password=Passsword1&mykey={PARSEDRESULT}"
verifypositive=”User Logged In”
verifynegative="User unknown"
errormessage="Unable to authenticate user in MyApplication"
/>
<case
id="3"
description1="Navigate through MyApplication while authenticated"
method="get"
url="https://myapplication.com/help
verifypositive="Welcome to the MyApplication help”
errormessage="Unable to navigate through MyApplication even though correctly authenticated"
/>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: web transaction test cases.

Post by scottwilkerson »

This is going to get real complicated real quick when dealing with logging in and sessions.

The best we can do is point you to some applicable instruction in the lengthy documentation which will need to be applied to your scenario, you will need a mechanism to manage cookies and state for the test case
http://www.webinject.org/manual.html#sesscookie
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked