Skip module during runtime?
Posted: Wed Apr 26, 2017 12:55 pm
Hi,
I have a test case (with iteration from an Excel file with contacts), that contains two recording modules: One that checks if a contact exists and the second that creates a new contact in the case that it doesn't exist.
If the contact exists, I want just a warning (Report.Warn) and the code to bypass the second module of the test case.
In other words, if there is a contact already, I want the result green. For this reason I cannot use Validate fail in the first recording module because it makes red the final result.
I also used Report.Failure in the first module in the case of existence, but the code continues to the second module instead of skipping it.
I saw something with endmodule but I wasn't able to find a good example.
Any help?
I have a test case (with iteration from an Excel file with contacts), that contains two recording modules: One that checks if a contact exists and the second that creates a new contact in the case that it doesn't exist.
If the contact exists, I want just a warning (Report.Warn) and the code to bypass the second module of the test case.
In other words, if there is a contact already, I want the result green. For this reason I cannot use Validate fail in the first recording module because it makes red the final result.
I also used Report.Failure in the first module in the case of existence, but the code continues to the second module instead of skipping it.
I saw something with endmodule but I wasn't able to find a good example.
Any help?