I am using Hybrid framework to automate salesforce.
so my qns is , in keywords-sheet suppose I have 5 steps which will work for all positive scenario if contacts/leads exist then proceed.
but in step 3 I am validating the records , if no records exists, I cannt edit or delete so I am showing a message for it , But I want to come out and dont want execute step 4 or 5.
I am not finding any way for it , my function is showing a message for no records but its still executing the remaining steps and showing nosuchelementexception which is true.
please suggest how to handle this type of scenario.
Hi Sadhna,
To skip the steps, you can create a new keyword let say "SKIP_Keywords" and specify the number of steps you want to skip in your test data, and then in your driver script mention that, while going through the excel sheet if you get skip keyword, check if the previous result was pass or fail. If previous result was pass then skip the steps based on the number of steps you have mentioned in the test data else execute the steps.