Don’t be afraid to move regression tests from Manual testing to Automation testing.
Select easiest testing automation framework for web.
I select Cypress
Create a folder which you want to save the framework. Navigate to that folder.
if you installed with npm, simply run `npx cypress open`.
Cypress default framework will be installed. This is how it looks.
Let’s use POM format, what does Page Object Model mean.
Now we have to create two set of files. 1st Page objects, 2nd Test files.
Lets take a sample website, hmmm w3 school looks good to start with
So we have a problem statement to navigate to google, search a for aj mahal and check the search results are returned.
lets name test with name that makes sense for the given problem statement
So verify_w3school_search_hp.cy.ts Or verify_google_search_hp.ts based on Js/Ts.
Other filename will reflect the page the element you want to perform action on will be. example : google_landing_page.js
On hitting npx cypress open, runner window opens.
You can check the execution in live time and also check the screenshots later