Re: Citrix +Web/HTTP playback error - access denied (814 Views)
Reply
Occasional Advisor
DonLM
Posts: 7
Registered: ‎03-26-2014
Message 1 of 9 (878 Views)
Accepted Solution

Citrix +Web/HTTP playback error - access denied

I am using VUGen v 12 to access apps through a Citrix storefront presented in a browser, using IE, 

I record using Citrix ICA and HTTP. The entire recording executes without trouble. Playback does not work – ending with web 403 error at a web_submit_data statement. Access denied to a folder. With testing, I also get a 403 error at web_custom_request. This Is only on playback.

 

Record options are set to use “explicit URLs only”, not the “user actions” choice. Playback options include setting “WinInet replay instead of Sockets (Windows only)”.

 

Playback does not work even if I do not open the target application. I get the error even if the only thing I do is open the web storefront.

 

What can I do to diagnose and resolve this roadblock?

HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 2 of 9 (826 Views)

Re: Citrix +Web/HTTP playback error - access denied

Hello
This usually means that some correlations are mising, check also headers of the problematic request.

regards
Occasional Advisor
DonLM
Posts: 7
Registered: ‎03-26-2014
Message 3 of 9 (824 Views)

Re: Citrix +Web/HTTP playback error - access denied

When the recording completess, LoadRunner/VUGen tells me that no correlation occurrences were found. I do not see any referecnce to "sessionid" in the script. If correlation variables are in the headers, how do I get to them and parameterize them?

HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 4 of 9 (822 Views)

Re: Citrix +Web/HTTP playback error - access denied

The fact that the autocorrelation scan finds nothing doesnt mean that no correlations are missing, check on the logs/snapshots what was send/receive during recording and what was send/receive during replay.

regards
Occasional Advisor
DonLM
Posts: 7
Registered: ‎03-26-2014
Message 5 of 9 (821 Views)

Re: Citrix +Web/HTTP playback error - access denied

In some of the snapshots of script creation, I see asp.net_sessionid=xxxxxxxxxxx,

and CsrfToken=xxxxx,

and CtxsDevceID=xxxxxx

 

I don't know how to parameterize the asp.net_sessionid in the thumbnail. Is this displaying header content?

 

Thanks

 

HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 6 of 9 (814 Views)

Re: Citrix +Web/HTTP playback error - access denied

Capture those values like a regulear correlation, there is nothing special about them, then use then into a web_add_auto_header or web_add_header, as per your requirements.

regards
Occasional Advisor
DonLM
Posts: 7
Registered: ‎03-26-2014
Message 7 of 9 (812 Views)

Re: Citrix +Web/HTTP playback error - access denied

ok - I'll try that. Correation was on my list of suspects, though I am not familiar with workig with headers.

I don't know the difference between the two calls but will find out. Per requirements, I just need to make the Citirx Storefront wokr like a polite little box, which in our app is green.

 

Thanks for several advices.

Occasional Advisor
DonLM
Posts: 7
Registered: ‎03-26-2014
Message 8 of 9 (787 Views)

Re: Citrix +Web/HTTP playback error - access denied

I looked at the syntax for the web_add_header. It looks like it is

   web_add_header (<object name>, <object value>) 

and it just gets added to other header objects.

 

I don't really know what is in the header. If a sessionid is in the header, I don't understand the result of adding the sessionid again. Does it get inserted before or after other other header objects?

 

I tried using web_save_header to see header contents and playback said the header was saved in a message, but I did not see how to display the message.  How do I see the message?

 

Are there functions for paramterizing values, specifically sessionids or vales that act like sessioids? I only know about form variables that I can paramterize by highlighting in a script.

 

 

Occasional Advisor
DonLM
Posts: 7
Registered: ‎03-26-2014
Message 9 of 9 (752 Views)

Re: Citrix +Web/HTTP playback error - access denied

I changed my approach, so not really solved but not attacking the problem from a different angle. I am by-passing the Citrix storefront and using the Citrix ICA file sent by the server. With this approach, results seem to change from trial to trail. I suspect 1. the state in which I left the previous record/replay is affecting the new replay - maybe because of our Citrix and server configuration, and 2. minute differences in paths changes replay results. These might require inserting functions. Example: previous run replayed ok, this run sticks at a Start window and error mentions window not active - this might just need a function like lr_focus, which I need to reseach now.

 

A teammate tells me that Citrix replay sometimes needs a lot of attention after the recording is made in order to produce a script suitable for testing multiple users.....

 

So, for now, with mixed results, I am using a workaround instead of a solution and will return later.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.