bcgov / digital-journeys

PSA Forms System
https://bcgov.github.io/digital-journeys/
Apache License 2.0
8 stars 7 forks source link

Telework: Selenium Scripts #1796

Open MikePSA opened 5 months ago

MikePSA commented 5 months ago

User Story As a tester, I want to use Selenium to automate testing so I can increase test coverage and efficiency.

Tasks

  1. Choose between Selenium IDE vs WebDriver
  2. Determine Telework test scenarios
  3. Write test scripts for scenarios
  4. Test the scripts

Acceptance Criteria

Testing

MikePSA commented 4 months ago

After discussing with Andrew and Fazil, Telework scenarios were determined as below:

  1. Submission with less than 3 days
  2. Submission with more than 3 days Approved (file upload required)
  3. Submission with more than 3 days Denied (No file upload required)
  4. Draft submission to success page
  5. Supervisor delete button
  6. Date (if edited, should revert to current date)
  7. Mandatory fields
  8. Prepopulated fields

If there are other Telework scenarios anyone would like to add, please let me know.

MikePSA commented 4 months ago

After team discussion, the current goal is for scripts to be used for pre-deployment testing in the TEST environment. Post deployment scripts for PROD environment is a good idea but will take extra steps and developer effort for full automation and will be looked at later down the line.

We are figuring out the best approach to use and provide access to the scripts so testers can run them independently. One method is to run with Windows PowerShell and store the test files on Microsoft Teams.

Stella is also looking into dummy accounts for testing.

MikePSA commented 4 months ago

Selenium setup test with Ayush went fairly well. We could run scripts, but not get pass the login section. IDIR SSO would redirect to login page, requiring username and password.

ayushdamani commented 2 months ago

Fazil or Stella will also test the scripts - Mike is available for help!

Stella-Archer commented 2 months ago

Testing - these are web Driver file look at manual for webdriver - install Python to test

Stella-Archer commented 2 months ago

@MikePSA I'm having some difficulties with getting the scripts running - oddly enough I can see it open up the cold and flu form not Telework - what am I doing wrong here?

image.png
fazil-ey commented 2 months ago

@Stella-Archer to continue test this ticket

Stella-Archer commented 1 day ago

https://bcgov.sharepoint.com/:f:/r/teams/03991/Shared%20Documents/General/Selenium/Selenium%20Scripts/Telework/Telework%20WebDriver?csf=1&web=1&e=Og7PDQ