I am trying to create a script. I have several CGI parameters named, "SessionKey" that I need to extract and variablize. The problem I have is that the very first instance of SessionKey appears as a CGI parameter, but I can not extract it. I try to use the replacement wizard, but there is no preceding or following text. When I click on the "modify extract info" button inside the wizard, the sessionkey info does not appear.
Replacement wizard is able to extract from current page and set CGI parameter for next request only.
Maybe SessionKey is provided by server 2 or 3 pages it should be sent by the client. Try to find it within text .cap file. When found add extract on one page and set CGI parameter later in the script. If not found ask if SessionKey is calculated by the client.
I haven't seen a response from a server that had absolutely no preceeding or following text. Can you attach the full response from the server (including header)? It may be beneficial to use a proxy capture (I suggest Fiddler) so that you can see exactly what the server response looks like.
If there is no preceeding or following text I'm not clear why you couldn't just extract the whole response as the sessionKey.
Another good thing about profiling your transaction in a proxy capture is that you can see if there are pages in between the reponse with the sessionID and the request you want to parameterize. Many java apps that I've worked with have a "blank" page request after each server response. In this case you can delete these requests from the capture file before you convert it (which is what I usually do as the page is meaningless and load is minimal on 100 user apps) or you can capture the parameter to a variable on a previous response and use Var Wizard with that variable. These steps are necessary in this case as QA Load will only use auto parameterization for the last server response.
Check each and every page that CGI parameter consists of SessionKey.Atleast on onepage you will get "SessionKey" under CGI parameter.After that extract the Sessionkey,using insert tree view.
May be it will solve.....