How did you run End to End (E2E) test with API
Generally, we'd like to implement sanity test with API first, and checking each endpoint by function. After it works well, you may want to implement more complex business scenarios. At some time, a feature related to other component and received some messages / trigger from upstream / downstream application. If you create tests with API, how did you design your test data / structures / checkpoints?
For example: I'd like to sumbit a post to update certain status, but it relied on upstream's data / status, I cannot put hard code in post, it mostly like populated data depends on dynamical response. then will send some GET request to retrieve data and determine status. if data return is not required, then loop to get next one.
Actually, can also take advantage of Request/Reply to do data inititation in back-end, and directly retrieve required data from system. However, if skip data init, only process via API. it will produce more extra steps to construct fundamental data. what's your suggestion to process E2E?
Thanks in advance
Regards,
/Aaron
Hello Aaron,
If I get your inquiry right, you need to combine API test, GUI tests and interaction with your DB.
For the GUI testing part, you can use a test automation tool such as TestComplete or Selenium. ReadyAPI integrates with both TestComplete (https://support.smartbear.com/readyapi/docs/soapui/steps/testcomplete.html) and Selenium (https://support.smartbear.com/readyapi/docs/testing/integrations/selenium/index.html), so you can include the UI interaction to your ReadyAPI test this way.
Interaction with DB Servers can be easily performed from within ReadyAPI with the JDBC Request test step: https://support.smartbear.com/readyapi/docs/soapui/steps/jdbc-request.html