Skip to content

cailyoung/interview-demo-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Demo for Interview

Prerequisites

  • .NET Core SDK for your platform
  • Internet access from the machine you are running this from
  • A working Xero credential with 2FA code already set up
    • Reset your demo company before running the test, please.
  • Chrome browser (latest version) installed in the default location

Running the tests

  1. Clone the repo to a local folder.
  2. Edit credential.yaml to have your username and password.
  3. Edit helpers.cs line 38 to point to your full filepath to the credential.yaml file.
  4. Have your 2FA authenticator ready!
  5. Run dotnet test from inside the selenium-tests folder.
    • The test runner will attempt to restore all the NuGet dependencies at this point, probably silently, so on first run it will take some time depending on your Internet connection speed.
  6. When the browser pauses at the 2FA entry, enter your code but don't click. Selenium should handle the click after 10 seconds.
    • (If you do click, the script doesn't handle this very well and will probably throw an exception.)
  7. Results are visible in the console.
  8. The test suite will attempt to reset your demo company in teardown.

TODO

  • Parameterise the credential file location
  • Reporting
  • Extract the Actions clicker to a class
  • Bypass 2FA
  • Randomise bank account name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages