String Assertion specific to two values from parameterized excel

ParasofttoudayaParasofttoudaya Posts: 195

Hi Team,

I have scenario where i will pass "active" to get active orders,"expired" to get expired orders.
Where as i am passing "expired","active" in an array to get both status orders.

In this situation how do i validate only both status orders have been retrieved?

Note: validation is passed as a argument from excel.
[1.active, 2.expired 3. active, expired]

Regards
Udaya

Comments

  • jakubiakjakubiak Posts: 307 ✭✭✭

    What does your response payload look like?

  • ParasofttoudayaParasofttoudaya Posts: 195

    Array of response which carries status as element.

  • jakubiakjakubiak Posts: 307 ✭✭✭

    Please post a sample - that's still not enough information to know how to help.

  • ParasofttoudayaParasofttoudaya Posts: 195

    [{
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    },
    {
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    },
    {
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    },
    {
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    }]

  • ParasofttoudayaParasofttoudaya Posts: 195

    [{
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    },
    {
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    },
    {
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    },
    {
    "OrderNo":"2121"
    "status"::active"
    "orderType":"SB"
    }]

Sign In or Register to comment.