0
votes

I am trying to record Https request.

When i record under HTTP(s) Test Script Recorder it records and i can see Request/response under View Results tree without errors.

When i try to do record same scenario but under Thread Group , it gives me error (Error is thrown by the application). Application Error - An error was encountered There was an error on the page. Click "Go Back" to go to previous page or click "Home" to go to homepage.

Structure is : Test Plan -> Thread Group -> Recording Controller

In my application while recording it starts with Login Page(SSO Login page) -> Home Page -> Search Page -> On this page i search something and want to capture its response time taken for search.

I think problem is ViewState and EventValidation not getting passed ? Is their a way i can pass it to the page ?

1

1 Answers

0
votes

It seems problem with the correlation. You need to find the dynamic parameters like ViewState and event validation.

  1. Record to scripts and compare them to check the dynamic parameter with any sniffing tool like fiddler. If you already aware then ignore this step.

  2. Usually, you get the required parameter before the final call is made. So, you need to find the occurrence where you are getting the required parameters in response and capture using PostProcessor.

  3. Then, pass the captured parameters in the required request.

EX;-Below is for more clarification. Follow same for all dynamic parameters. TestPlan

--Request1-->PostProcessor(Like RegEx or any other) to capture viewState

--Request2--Pass the captured viewState value to this request.