We are currently evaluating the WAPT tool for testing our web-based J2EE application developed using JSF framework in CELGENE, USA. We are seriously considering buying the product.
However, I have one very important technical issue. I am having issues with creating variables from hidden values in the previous page. Currently, I have the following pages recorded in my WAPT profile:
page_1: http:// <server>:7001/s100.faces
page_2: http:// <server>:7001/s100.faces
page_3: http://<server>:7001/s301.faces
page_4: http:// <server>:7001/s302.faces
page_5: http:// <server>:7001/s303.faces
page_6: http:// <server>:7001/s114.faces
page_3 is the registration form that posts data to page_4 above. Hence, I am creating a few variables in page_4 using the $Hidden function to get the values submitted from page_3. The screenshot of page_4 in WAPT is attached. I am trying to re-use these variables in page_6 for submitting further information in the test case. The screenshot of page_6 in WAPT is also attached. However, the log shows these variables going as blank for the POST request to page_6 though I have entered values in the screenshot for page_4. Here is the excerpt of the URL POST request to page_6 from the WAPT log:
<% 12:11:45 Request %>
POST /s114.faces HTTP/1.1
Cookie: JSESSIONID=LwNZHZSD01MFBQndGQGmPL0MtNmpLB9MypfNwtSWtnp03SVC2nGS!-1747703710
Content-Type: application/x-www-form-urlencoded
Content-Length: 774
Host: <server>:7001
Referer: http://<server>/s303.faces
Connection: Keep-Alive
Accept: text/html, */*
Accept-Language: en-us, *
Accept-Encoding: compress, gzip, *
Pragma: no-cache
User-Agent: *WAPT 5.0*
form_main%3Ainp_midInit=M&form_main%3Amenu_degree=100162&form_main%3Amenu_speciality=1&form_main%3Ainp_ssn=&form_main%3Ainp_dea=&form_main%3Ainp_meNo=&form_main%3Ainp_add1Name=Celgene&form_main%3Ainp_add1Att=&form_main%3Ainp_add1line1=&form_main%3Ainp_add1city=&form_main%3Amenu_add1state=&form_main%3Ainp_add1zipcd=&form_main%3Ainp_add1phone=0000000000&form_main%3Ainp_add1fax=0000000000&form_main%3Ainp_add1email=&form_main%3Ainp_add2Name=&form_main%3Ainp_add2Att=&form_main%3Ainp_add2line1=&form_main%3Ainp_add2city=&form_main%3Amenu_add2state=none&form_main%3Ainp_add2zipcd=&form_main%3Ainp_add2phone=&form_main%3Ainp_add2fax=&form_main%3Ainp_add2email=&com.sun.faces.VIEW=_id1197%3A_id1411&form_main=form_main&form_main%3Abtn_continue.x=71&form_main%3Abtn_continue.y=23
Am I doing something wrong? Could anyone explain how variables are supposed to be used? Where are the variables created in the URL chain for the test case?
Thanks a lot!!
Regards
Karthik
Attached File(s)
-
PAGE_4.JPG (162.03K)
Number of downloads: 40 -
PAGE_6.JPG (150.12K)
Number of downloads: 30

Help











