Skip to content

QA Automation Engineer - Coding Challenge using Javascript and Testcafe

License

Notifications You must be signed in to change notification settings

castanedadev/AutomationPractice-Theorem

Repository files navigation

AutomationPractice-Theorem

This is the automation framework generated as a result of the: “up to” 8 hour exercise that Thorem proposes for new engineers.

Tooling & Stack

  • Node.js
  • Testcafe
  • Prettier & ESLint
  • Winston (for logging)
  • Faker.js (for auto-generated data)

How to run?!

  • Node.js and npm must be installed prior
  • Run npm i
  • From the console: testcafe chrome tests/*.js
  • If using Windows/WSL testcafe --ports 63305,63305 --live remote tests/*.js

Final Results

  • Have a look at the FinalResults_Sample.png file
  • Have a look at the file that contains the logging
  • Commited to 7 urgent tickets, completed 4 See board

Scenarios that aren't request but I feel they should (Ordered by priority)

  • Verify end to end scenario that covers the complete flow from Summary to Payment
  • Verify that user sessions don't share items in the cart
  • Verify that "Forgot your password" flow works fine
  • Verify Whishlist functionality

What would I do different if I had more time?

  • Switch to typescript FTW!
  • Enhance reporting & logging
  • Add methods to abstract common actions such as: SelectGivenOptionFromDropdown()
  • Expand filtering capabilities to run tests by metatags
  • Introduce pull request template so that any team member follows that
  • Introduce RequestLogger to check for API calls in certain points of the website
  • Introduce githooks pre-commit, pre-push for certain tasks

NOTE: This was developed in Windows using WSL 1.0 / Ubuntu 20.0.4

About

QA Automation Engineer - Coding Challenge using Javascript and Testcafe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published