Forum Discussion

LennSar's avatar
LennSar
Contributor
3 years ago

Test Case global assertions

 Hi there, I'd like to test a bunch of bad requests and expect the same return code for all of them. By default my "Valid Http Status Codes" Assertion is configured to only allow 200. For my bad req...
  • LennSar's avatar
    LennSar
    3 years ago

    Hi richie 

     

    based on your data source / loop example I doubt we are talking about the same problem. I have several completely independet requests instead of a requests that can be adjusted using variables. So it would rather be:

     

    Testsuite

    --- TestCase A

    ------- Request A

    --- TestCaseB

    ------- Request B

    .

    .

    .

     

     

    or 

     

    Testsuite

    --- TestCase A

    ------ Request A

    ------ Request B

    ------- .

    ------- .

    ------- .

     

    I realised though that I can copy assertions from one Request to another and with what I can reduce the effort dramatically. 

    Adjusting it in the xml file theoretically sure is possible but obviously we both know how much fun it is to do so 😉