
What is Deployment Testing?
Deployment Testing covers user interaction automation using the browser and automation tools like Selenium. This testing is done once the web application is deployed on a test server. It ensures that the web application is running correctly in different web browsers and a user can perform different operations successfully on it.
The following components are there in this phase:
Selenium browser setup
VSCode IDE with Selenium python library
Test server
People involved: Developers and Testers
Image: showing Developer, test server, and Selenium
What is Continuous Testing?
The continuous testing approach is to evaluate and test the software at different steps of the Continuous Delivery process. This can be achieved by making the automated testing tools a part of the DevOps pipeline and automating most of the crucial tests using testing/automation frameworks.
External sources:
What is Continuous Testing? https://www.guru99.com/continuous-testing.html
What is Selenium? https://www.guru99.com/introduction-to-selenium.html
Selenium tutorials: https://www.javatpoint.com/selenium-tutorial
Why is it important in DevSecOps?
The Continuous Testing ensures that in each iteration/build the software/webapp is working properly and not any newly added code has not resulted in breaking the functionality of the project. This saves a lot of manual effort (by automation) and time (by detecting the issues early)..
What will you learn in this section?
The user will learn to perform the following tasks
Automating basic user activity using the Selenium browser plugin
Automating user interaction with Selenium Python library
Automating dictionary attacks and complex operations with Selenium Python library
Tools Covered
Selenium browser plugin
Selenium python library
Labs
Selenium: Basic Automation with Plugin
Selenium IDE extension is installed in the Firefox browser of the lab Kali (kali-gui) machine. A WordPress (wordpress) instance is also present in the lab.
Objective: Automate the user login, new user creation, and publish a post using the Selenium IDE.
Selenium: Scripting Interaction
A Visual Studio Code IDE is provided along with a target WordPress portal. Selenium is installed on the IDE machine and can be invoked with a Python script.
Objective: Learn about using Selenium with Python language. Then, automate user login and plugin installation.Selenium: Scripting Dictionary Attacks
A Visual Studio Code IDE is provided along with a target WordPress portal. Selenium is installed on the IDE machine and can be invoked with a Python script.
Objective: Learn about using Selenium with Python language. Then, automate dictionary attacks in headless and normal mode.