- To pay it forward to the testing world and help us all upskill 🚀
- For us all to help a cause greater than ourselves 🌍
Radical action is needed if we are to close the opportunity gap for Black women and girls. We lead a global movement to establish equal representation in the tech sector. Black Girls CODE is devoted to showing the world that Black girls can code and do so much more. Together, we are creating stronger economies and more equitable societies—ultimately realizing the true potential of democracy through diversity and inclusion.
While the event is free, Sauce Labs encourages all attendees to donate to Black Girls Code. Sauce Labs Office of Inclusion & Sustainability will match donations up to $2500.
In this automation best practices workshop you will learn the latest and greatest tools and techniques to drastically improve your testing!
We will focus on a holistic approach of risk mitigation by doing:
- Functional web testing
- Create a framework for doing comprehensive web testing
- Use industry-standard best practices
- Create functional browser tests using Selenium
- Many other things in between
- Accessibility testing
- Run in massive parallel (100s of tests in < 5 min)
- Automatically get robust test reports which includes logs + videos
- Introduction to workshop
- Setup
- E2E browser tests
- Atomic tests
- Accessibility tests
- Parallelization
- Conclusions
This is NOT a beginners course. You will not learn Java testing fundamentals here. However, you will learn a number of amazing skills, techniques, and tools to help you test web applications
- At least 1 year of Java programming
- Deep understanding of Selenium WebDriver
- Deep understanding of OOP
- Java 8 installed
- Java IDE installed
- Git
- Maven installed
- Free Sauce account
- 🏢 Solutions Architect at Sauce Labs
- 😄 Pronouns: he/him
- 🏠 Home automation enthusiast
- 📫 Links:
- Save your Sauce Labs Username and Access Key by going to the Sauce Labs user settings page
ℹ️ Gitpod lets you run an entire Dev environment from a browser! You can use this approach if you don't know how to set up a local Java environment.
- Once the Gitpod.io URL is loaded, you will need to sign in with the GitHub account you created earlier
- Once the development environment is loaded, you should see 'Ready to test!' in the Terminal window in the lower
portion of the window, run the following commands in that Terminal to set your
SAUCE_USERNAME
andSAUCE_ACCESS_KEY
:
ℹ️ You can get your Sauce Labs Username and Access Key by going to the Sauce Labs user settings page
eval $(gp env -e SAUCE_USERNAME=<sauce_username>)
eval $(gp env -e SAUCE_ACCESS_KEY=<sauce_access_key>)
Replace <sauce_username> and <sauce_access_key> with your credentials
Once you have run those 2 commands, you can run the following commands to test your environment variables:
echo $SAUCE_USERNAME
echo $SAUCE_ACCESS_KEY
Run sanity tests
mvn test -Dtest=E2ETests -X
Click here to see an example console output.
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 3
[INFO] ------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------
[INFO] Total time: 12.410 s
[INFO] Finished at: 2022-07-11T10:06:10-04:00
[INFO] ------------------------------------------
Fork then clone the repo
-
Sign up for a free GitHub account
-
- Make sure you are logged into GitHub
- Click the Fork in the upper right of the GitHub.
-
Clone your fork of the repository to your machine. Must have Git installed
git clone URL_OF_YOUR_FORK
Setup environment variables on your system
Navigate to the directory of where you cloned your repo
cd YOUR_FORK_DIR/automation-best-practices/workshop
Run sanity tests
mvn test -Dtest=E2ETests -X
Click here to see an example console output.
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 3
[INFO] ------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------
[INFO] Total time: 12.410 s
[INFO] Finished at: 2022-07-11T10:06:10-04:00
[INFO] ------------------------------------------
By default, the data center selected for our exercises is US_WEST
. If you would like to switch to another data
center (i.e. EU_CENTRAL
), please update the E2ETests with the appropriate data center.
Stay to the end and 2 lucky people can win a snazzy Backpack!
💡 this is a tip
🏋️ this is an exercise for you to do
❓ this is a question for us to think and talk about. Try not to scroll beyond this question before we discuss