V
V
vitaly_742020-05-14 17:59:53
Codeception
vitaly_74, 2020-05-14 17:59:53

How to set the order of different tests in codeception?

Good afternoon, I use webdriver for acceptance tests. I need to test the full cycle of a monetary transaction. but this cycle is divided into several parts:
1. creating, logging a transaction on the server side, sending the user to pay.
2. receiving a Callback from the payment system
3. receiving a user.
These three tests cannot be done independently due to the uniqueness of the transactions. I need to first create a transaction (and check that it was created correctly), then, based on this data, generate a callback and send it to myself, credit the transaction, and then run test 3 to redirect the user to the successful payment page.
tell me how to set the correct order? I would be very grateful to you. (I also need to check the correctness of the data in the database).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2020-05-14
@vitaly_74

Advanced usage - section Dependencies - so that one method is executed strictly after another.
Cests in order can only be set by alphabetical order in the names (the creator rejected the ability to set the order manually).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question