Should I use Selenium for booking mechanism?

We will develop a booking system, an order process for 4-5 steps for booking rooms with a hotel where there is a lot of difficulty. Something similar to this .

Has anyone used Selenium for something like this? What tests can I do? Can I install something like Selenium to go through the whole process of step 1 to the last step, making sure the rooms are available, what can I book? I could test things like making sure the data is in session, right?

+6
php unit-testing selenium integration-testing
source share
3 answers

Unit testing means testing individual components in your code in isolation (for example, a function, class, or method). After that, there is functional and integration testing, which checks the interaction between the components and, finally, automatic testing of the user interface in which selenium is located. These are the most fragile tests, and, of course, this is not the first thing you need when it comes to the architecture of the new system.

+3
source share

Selenium is not really considered unit testing; This is integration testing .

For unit testing in PHP, PHPUnit seems to be a tool to use.

+1
source share

Selenium is great for functional testing. It allows you to run large integrated tests and verify that the functionality you expect from the user may be there.

Selenium should only be used to verify that the workflow and functionality that the user expects still exist.

+1
source share

All Articles