3

A test case needs 5 mins of wait. During these 5 mins I want to run other test cases. After 5 mins I want to check the necessary condition of 1st test case which is on hold for last 5 mins.

How to implement this scenario?

For ex: Steps

  1. Run 1st testcase.
  2. In the middle of 1st test case it needs to wait for recurring payment for 5 mins.
  3. During these 5 mins I want to run other testcases, like test2, test3, etc..
  4. After 5 min I want to check whether the recurring payment was received or not in 1st testcase.
7
  • Yes, it is possible. To provide more details we need more details. Commented Dec 13, 2014 at 18:01
  • 1
    What kind of information you need? (I am using LAMP stack, phpunit, webdriver)
    – Ravi Ojha
    Commented Dec 15, 2014 at 9:48
  • 1
    Flagged. Please provide more details. Commented Dec 15, 2014 at 14:43
  • 1
    @Ojha, I think you're asking the wrong question here. Instead of saying "is it possible" I would suggest gearing your question toward "how do I do it". Conceptually what you're looking to do seems possible, and truly an answer that really answered that would justify the answer somehow (probably by giving an example of how to do it). But it might not, and you wouldn't want to have an answer that satisfies your stated question but not your real question, would you? =)
    – corsiKa
    Commented Dec 17, 2014 at 14:53
  • 1
    @corsiKa, Thank you for teaching me the way to ask my query.
    – Ravi Ojha
    Commented Dec 18, 2014 at 6:44

1 Answer 1

1

Split your long testcase into two -- one testcase does the stuff before the wait and returns a passing status if it was able to do start the process successfully.

The second half of your original testcase runs as a separate testcase that you run at the end of your suite

For example, if the test is "click the 'submit order' button and verify an email was sent", make that into two test cases: 1) click the submit button and verify the proper function was called, and 2) check the mail account to see if an order was received.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.