-1

I have an older aspx .net website I am testing and in some of the tests I want to view some reports. I am able to visit the report page and make selections but when I hit view report, it fails to view the report and I get a page redirect error.aspx.

Here is my test plan:

enter image description here

New Test Plan:

enter image description here

I created regular expression extractors for __VIEWSTATE and __EVENTVALIDATION that I also added the the post HTTP request to view the report. The parameters have all the report options and these on the bottom:

enter image description here

Is there anything I'm missing to be able to pull the reports? I believed they're served to the website using SSRS. I don't know if that makes a difference.

EDIT: I just noticed that it is losing the value for __VIEWSTATE and __EVENTVALIDATION in the request body even though I set the variable. The login and report option post http calls have a value for these parameters but then it disappears and defaults to ERROR for the view report post call.

enter image description here

Here are my regular expressions

enter image description here enter image description here

EDIT: New CSS Extractors enter image description here enter image description here enter image description here enter image description here enter image description here

Here's HTTP Requests enter image description here enter image description here enter image description here enter image description here enter image description here Where the issue is at enter image description here

The error Response body: enter image description here enter image description here

Headers for the report options and report view POST HTTP requests enter image description here enter image description here

isaaca
  • 47
  • 8

1 Answers1

0

You're getting default values of ERROR because your regular expressions fail to extract the values from the response.

  1. In general using regular expressions for parsing HTML isn't recommended, consider using CSS Selector Extractor instead, example configuration would be something like:

    enter image description here

    See CSS Selectors Reference for more information

  2. I believe you should also correlate this __VIEWSTATEGENERATOR value

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • I created css selector extractors for view state, event validation, and view state generator but I'm still getting the same issue. their values default to error when trying to view the report but work properly for logging in and selecting the report options. I also made css selectors for event argument and event target @dmitri-t – isaaca Mar 04 '22 at 18:11
  • could it be that my "/report option" and "/report view" HTTP requests are both post requests and the variables aren't being passed correctly? – isaaca Mar 04 '22 at 18:41