Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

String Assertion specific to two values from parameterized excel

Options
Parasofttoudaya
Parasofttoudaya Posts: 232 ✭✭

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

  • jakubiak
    jakubiak Posts: 798 admin
    Options

    What does your response payload look like?

  • Parasofttoudaya
    Parasofttoudaya Posts: 232 ✭✭
    Options

    Array of response which carries status as element.

  • jakubiak
    jakubiak Posts: 798 admin
    Options

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

  • Parasofttoudaya
    Parasofttoudaya Posts: 232 ✭✭
    Options

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

  • Parasofttoudaya
    Parasofttoudaya Posts: 232 ✭✭
    Options

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