Ad Widget

Collapse

Web scenario trigger works weird

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tristis Oris
    Member
    • Sep 2015
    • 66

    #1

    Web scenario trigger works weird

    Greetings.
    created check if web page status not 200,201, disabled website, got 502 error.

    Now i have value "Last error message of scenario "Web status"." which makes trigger permanent active even if site status 200.
    But i used trigger "Response code for step "Error code check" of scenario "Web status"." so it should not check this history value.

    am i wrong?
    Attached Files
  • Tristis Oris
    Member
    • Sep 2015
    • 66

    #2
    ok, it not boolean. but i make this checks before at scenario. But must check again as numeric error code.

    this works: last(/Web availability/web.test.rspcode[Web status,Error code check])<>200 and last(/Web availability/web.test.rspcode[Web status,Error code check])<>201

    looking again is it 200 AND if i want another code, is it something else.

    not obvious, bad solution if you need 5-10 rules.

    so this:
    last(/Web availability/web.test.rspcode[Web status,Error code check])>=500 and last(/Web availability/web.test.rspcode[Web status,Error code check])<=599 or last(/Web availability/web.test.rspcode[Web status,Error code check])>=400 and last(/Web availability/web.test.rspcode[Web status,Error code check])<=499

    Comment

    Working...