• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

Hi All, 

 

I have been trying to test my Application built in Spring Web Flow through LoadRunner, property of which(Spring Web Flow) is that the URL changes frequently after each browser navigation request. But when I am replaying my script through VuGen tool , it is redirecting it to new a unexpected URL. Manually everything works fine.

 

Expected URL Flow is given below : 

 

http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e1s2 to http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e1s3

 

But actually what is happening as I figured out from the logs is that It is redirecting it to a new URL 

 

http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e2s1 instead of http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e1s3.

 

Which is causing my test case to fail..

 

Below attached is my script and logs mentioned below.... Please help me...

 

web_url("main_3",
"URL=http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e1s2",
"Resource=0",
"RecContentType=text/html",
"Referer=http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e1s1",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);

 

 

 

Logs of LoadRunner Script execution : 

 

Action.c(141): Connection to cscvappnor107:9085 closed after being inactive for 60 seconds, exceeding the "HTTP Keep-Alive timeout" Run-Time Setting (60 seconds). URL="http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e1s2" [MsgId: MMSG-27652]
Action.c(141): Redirecting "http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e1s2" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(141): To location "http://cscvappnor107:9085/exceed_8087_nor107/spring/main" [MsgId: MMSG-26693]
Action.c(141): Redirecting "http://cscvappnor107:9085/exceed_8087_nor107/spring/main" (redirection depth is 1) [MsgId: MMSG-26694]
Action.c(141): To location "http://cscvappnor107:9085/exceed_8087_nor107/spring/main?execution=e2s1" [MsgId: MMSG-26693]
Action.c(141): Resource "http://cscvappnor107:9085/exceed_8087_nor107/spring/javax.faces.resource/primefaces.css?ln=primefaces" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(141): Resource "http://cscvappnor107:9085/exceed_8087_nor107/spring/javax.faces.resource/layout/layout.css?ln=primefaces" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(141): Resource "http://cscvappnor107:9085/exceed_8087_nor107/spring/javax.faces.resource/blockui/blockui.css?ln=primefaces-extensions&v=0.6.3" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(141): Resource "http://cscvappnor107:9085/exceed_8087_nor107/css/common/global.css" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]

 

In bold text, It is showing that redirection of URL. And By Manual execution of flow everything works fine.

 

Please help if somebody has ever faced this kind of problem before.

4 REPLIES 4
HP Recommended

NeerajSharma, welcome to the forum.

 

When requesting help you should always include the make/model (i.e. p6-xxxx) of the computer and/or monitor. This information is necessary for us to review the specifications of them.



I am not an HP Employee!!
Intelligence is God given. Wisdom is the sum of our mistakes!!
HP Recommended

Sure. Thanks.. But Anyone who has an expertise in this thing. Please help me. It seems to me that LoadRunner does not support Spring Web Flow Applications because the URL changes dynamically.

HP Recommended

Some thing that I checked with my Application is that the value of javax.faces.viewstate is generating randomly large. To me it seems to be an issue. Just look at the underlined text value.

viewstate issue.PNG

HP Recommended

Environment Details :

 

Window 2008

 

Application Server : - > WAS 8.5

 

Finally I am able to resolve this Issue. The issue is basically specific to WAS application sevrer. Changing the Header options in the recording options options in Load Runner Settings resolved this Issue.

 

What I did to resolved it :--->

 

In Vugen Setting-

 

1). Go to HTTP Setting.

2). Go to advanced.

3). Click on Headers

4). Remove all the Headers.

5). Click on restore List.

6). Save Setting and try to execute the script again.

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.