Page 1 of 1

web transaction test cases.

Posted: Tue May 07, 2019 2:26 pm
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"
/>

Re: web transaction test cases.

Posted: Tue May 07, 2019 3:09 pm
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