Highlighted
Regular Contributor.
Regular Contributor.
369 views

VUser Generator passes script test, but VUser didn't send request to server.

I have a very simple test. My user provides SchoolId and StudentId. My website generates SQL report based on provided parameters. I created script in VUser Generator. When I use hard coded SchoolId and StudentId, my test passes and I can see request in the SQL Reporting Server. When I switch to Parameter, I got "Replay status passed". But I didn't see request in SQL Reporting Server. I doubt VUser sends request to the server. So hard coded value works, but dynamic parameters doesn't work. Meanwhile I also got the following warning. 

Action.c(90): Warning -26612: HTTP Status-Code=500 (Internal Server Error) for "http://localhost:54424/Reserved.ReportViewerWebControl.axd?ReportSession=vzlnsyq5oqc0eo55l5p1iozj&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=bdb349451c28498fb18962b2541ffc4d&OpType=ReportImage&IterationId=2f4b79d8b23943a1bd1ffb2f38372359&StreamID=a3c30a44ac7a4fe8b0c3598756d6b4b7"   [MsgId: MWAR-26612]

Please see my attached image for Parameters setting.

 

Labels (1)
0 Likes
13 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: VUser Generator passes script test, but VUser didn't send request to server.

In the failing URL I do not see the parameters back you shared.

Can you also put an sample of your script code in which you tried to replace the values with the parameters? (Both variants: with fixed values and parameters).

Signature:
Reward community members who take time to respond and help.
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: VUser Generator passes script test, but VUser didn't send request to server.

Hi @JHF Remmelzwaal 

Fixed values

"Name=ctl00$MainContent$uxSchoolId", "Value=8287", ENDITEM, 
"Name=ctl00$MainContent$uxStudentId", "Value=32970", ENDITEM, 

Parameters

"Name=ctl00$MainContent$uxSchoolId", "Value={parSchoolId}", ENDITEM, 
"Name=ctl00$MainContent$uxStudentId", "Value={parStudentId}", ENDITEM, 

In web_custom_request

"LE4ThjS16lajbGRSgorgmro%2BnXFpd83IWwZ3C3vqxM&ctl00%24MainContent%24uxSchoolId={parSchoolId}&ctl00%24MainContent%24uxStudentId={parStudentId}&ctl00%24MainContent%24uxReportViewer%24ctl03%24ctl00=&ctl00%24MainContent%24uxReportViewer%24ctl03%24ctl01=&ctl00%24MainContent%24uxReportViewer%24ctl10=ltr&ctl00%24MainContent%24uxReportViewer%24ctl11=standards&ctl00%24MainContent%24uxReportViewer%24AsyncWait%24HiddenCancelField=False&ctl00%24MainContent%24uxReportViewer%24ctl04%24ctl04%24txtValue={parSchoolId}&"
        "ctl00%24MainContent%24uxReportViewer%24ctl04%24ctl06%24ddValue=1&ctl00%24MainContent%24uxReportViewer%24ctl04%24ctl08%24txtValue=0&ctl00%24MainContent%24uxReportViewer%24ctl04%24ctl10%24txtValue={parStudentId}&ctl00%24MainContent%24uxReportViewer%24ctl04%24ctl12%24txtValue=Data%20Source%3Desql2014%3BInitial%20Catalog%3DReportSource&ctl00%24MainContent%24uxReportViewer%24ToggleParam%24store=&ctl00%24MainContent%24uxReportViewer%24ToggleParam%24collapse=false&"

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: VUser Generator passes script test, but VUser didn't send request to server.

Try

"Name=ctl00$MainContent$uxSchoolId", "Value=lr_eval_string("{parSchoolId}"))", ENDITEM,
"Name=ctl00$MainContent$uxStudentId", "Value=lr_eval_string("{parStudentId}")), ENDITEM,

Boatnlarry
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: VUser Generator passes script test, but VUser didn't send request to server.

Hi @boatnlarry 

Value=lr_eval_string("{parSchoolId}") doesn't compile. I even tried Value=lr_eval_string({parSchoolId}) without double quote. Although script compiles, I got error, "Action.c(26): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://localhost:54424/Default" [MsgId: MERR-26612]"

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: VUser Generator passes script test, but VUser didn't send request to server.

Is your log enabled with Extended and Parameter substitution check?  If so are the correct values displayed in the output log?

Boatnlarry
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: VUser Generator passes script test, but VUser didn't send request to server.

I just set detail Level to Extended log with Parameter substitution. Here is the output. Values are correct.

Action.c(90): Notify: Next row for parameter parSchoolId = 1 [table = parSchoolId].
Action.c(90): Notify: Parameter Substitution: parameter "parSchoolId" = "8287"
Action.c(90): Notify: Parameter Substitution: parameter "parStudentId" = "336607"
Action.c(90): Notify: Next row for parameter parSchoolId = 1 [table = parSchoolId].
Action.c(90): Notify: Parameter Substitution: parameter "parSchoolId" = "8287"
Action.c(90): Notify: Parameter Substitution: parameter "parStudentId" = "336607"

My own observation is

If I use fixed value, I have two warnings. It is fine. I see request in the reporting server. When I use parameter, I have 3 warnings. I am sure reporting server didn't get request even though reply status shows passed.

  1. Action.c(90): Warning -26612: HTTP Status-Code=500 (Internal Server Error) for "http://localhost:54424/Reserved.ReportViewerWebControl.axd?ReportSession=yakbnu45t0gicd455dmhzr55&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=756503e021cb4e5a9f652d12fa9b2fc0&OpType=ReportImage&IterationId=79f930ec3d784d1aa12e293c184680c4&StreamID=e700fcbef5a04d1580087003a05b2671" [MsgId: MWAR-26612]
  2. Action.c(90): Warning -26612: HTTP Status-Code=500 (Internal Server Error) for "http://localhost:54424/Reserved.ReportViewerWebControl.axd?ReportSession=yakbnu45t0gicd455dmhzr55&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=756503e021cb4e5a9f652d12fa9b2fc0&OpType=ReportImage&IterationId=79f930ec3d784d1aa12e293c184680c4&StreamID=a87e0876-2dc7-4141-a6fd-94b71282f6a2" [MsgId: MWAR-26612]
  3. Action.c(90): Warning -26612: HTTP Status-Code=500 (Internal Server Error) for "http://localhost:54424/Reserved.ReportViewerWebControl.axd?ReportSession=yakbnu45t0gicd455dmhzr55&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=756503e021cb4e5a9f652d12fa9b2fc0&OpType=ReportImage&IterationId=79f930ec3d784d1aa12e293c184680c4&StreamID=d444640c4f504d5f84b3cab6e49953db" [MsgId: MWAR-26612]
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: VUser Generator passes script test, but VUser didn't send request to server.

I played around with runtime settings. I turn on "Data returned by server". 

When I am using parameter, I got return message, "<title>The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available. ". I don't have this message when I am using fixed value. It seems to me that by using parameter, VUser didn't actually send request to server at all.

 

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: VUser Generator passes script test, but VUser didn't send request to server.

@boatnlarry 

"Name=ctl00$MainContent$uxSchoolId", "Value=lr_eval_string("{parSchoolId}"))", ENDITEM,

This is definite wrong code. Function call lr_eval_string is part of string literal. The web_* functions will evaluate parameters automatically. This should be correct, but is any way not needed:

"Name=ctl00$MainContent$uxSchoolId", lr_eval_string("Value={parSchoolId}"), ENDITEM,

 

Signature:
Reward community members who take time to respond and help.
0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: VUser Generator passes script test, but VUser didn't send request to server.

@dailanfilippov1,

The issue is subtle and I do not see it yet. It looks like the parameters are in two sections in your script. If possible please attach two sources one with and one without parameters and also two replay logs with full logging.

Note that you should search and replace any sensitive info in those files, use e.g. Notepad++ kind of tool.

Signature:
Reward community members who take time to respond and help.
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: VUser Generator passes script test, but VUser didn't send request to server.

@JHF Remmelzwaal 

I am not sure "two sources one with and one without parameters". I attached my parameter file.

 

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: VUser Generator passes script test, but VUser didn't send request to server.

@JHF Remmelzwaal 

I have trouble upload log files in my previous reply. I will try here again.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.