This is implementation of QA Automation test task by Pecode.
- Write an automation script using a Javascript testing framework which will open: https://www.pecodesoftware.com/qa-portal/greet.php page
- Create an environment file and pick up all the credentials values from there.
- Fill in the “Username” and “Password” input fields and click the “LogIn” button.
- Use an assertion library and verify that all the elements are present on the page.
- Verify that all the error messages appear.
- Create a test-case that will fail because of unsuccessful login.
- Use a page-object pattern or app actions.
- The result of execution should generate:
- A mochawesome report file.
- Screenshots for failing the test.
- Video recording for all the tests.
- Optional - wrap the tests into a docker container.
- Post the code (without node_modules) to the public Github repository and provide a link.
Made using cypress v.10.3.0
To run this test task make git clone https://github.com/claimsecond/QA_automation_test_task
in terminal and then
- Go to the project folder and run
npm install
- Pull the docker image with cypress preinstalled
docker pull cypress/included:10.3.0
- Run the docker using following command
docker run -it -v $PWD:/e2e -w /e2e cypress/included:10.3.0
or
docker run -it -v ${PWD}:/e2e -w /e2e cypress/included:10.3.0
if you're running Windows
After all the tests are ran the report will be in mochawesome-report
folder, video of the testrun - in the cypres/videos
, screenshots of the failed tests - in the cypress/screenshots
folder inside the originally mapped e2e folder.