Hi @authorjapps,
I have a use case to enable and disable a functionality, like if its found to be in enable state you will get status 400 and test fails, if not then it will enable it and give status 200 and test passes.
So now, in order to ensure that the tests doesn't fail even if its 400 and also run a disabling function so that when enable is executed again then you get a status code 200 and it passes.
Since there is no if conditioning in this who do think we will be able to achieve this use case.
If (Enabled=true)
{
Status =400;
Disable==true;
}
else
{
Status=200;
}
Hi @authorjapps,
I have a use case to enable and disable a functionality, like if its found to be in enable state you will get status 400 and test fails, if not then it will enable it and give status 200 and test passes.
So now, in order to ensure that the tests doesn't fail even if its 400 and also run a disabling function so that when enable is executed again then you get a status code 200 and it passes.
Since there is no if conditioning in this who do think we will be able to achieve this use case.