What is your Scenario?
I am working with a situation where I have the following scenario/steps to Test
- Create
- Edit
- Delete
I have the test cases ready but I need a way to skip the Edit and Delete TCs if the Create TC fails. In other words I need to chain them together so the system understands that if Create was not successful then skip the Edit and Delete test cases (Conditional Skipping).
Is it possible with any existing process like hooks/test Context?
Is there any logic I can use to make this happen?
Thanks in Advance.
Expecting something like below
What are you suggesting?
test('Verify Create New Account Functioning Successfully', async (t: TestController) => {
// if this fails, I can set a variable x=fail
});
test('Verify Edit Account Functioning Successfully', async (t: TestController) => {
// Skip this as create test case failed
if(x == fail) {
test.skip(t.this test);
}
});
What alternatives have you considered?
Could not find any material regarding this in testcafe documentation.
Additional context
No response
What is your Scenario?
I am working with a situation where I have the following scenario/steps to Test
I have the test cases ready but I need a way to skip the Edit and Delete TCs if the Create TC fails. In other words I need to chain them together so the system understands that if Create was not successful then skip the Edit and Delete test cases (Conditional Skipping).
Is it possible with any existing process like hooks/test Context?
Is there any logic I can use to make this happen?
Thanks in Advance.
Expecting something like below
What are you suggesting?
What alternatives have you considered?
Could not find any material regarding this in testcafe documentation.
Additional context
No response