A Demo project using SHAFT_Engine
- Login to Website URL:
https://oyn-adminportal-qc-demo.salmonsky-1edff179.westeurope.azurecontainerapps.io/identity/login
- Use below user
- Role:
Store Admin - store 'Almarai'
- Email:
store@admin.com
- Password:
P@ssw0rd
- Role:
- Click on the "Login" button
- Verify that the login is successful by checking if the user is redirected to the home page or if a success message is displayed.
- Print the title of the home page.
- Logout from the application by clicking on the "Logout" button or a similar element.
- Verify that the user is successfully logged out by checking if the login page is displayed again.
- Close the browser.
• Use Selenium WebDriver with Java. • Use the appropriate locators and actions to interact with the web elements. • Make sure to handle any necessary waiting or synchronization. • Use assertions to verify the expected results. • Provide clear and readable code with appropriate comments.
- Navigate to the module that you want to play with. For example
GUI_Web
- Navigate to any test class. For example
src/test/java/TestPackage/TestClass.java
- Press the green play button next to the class name to run the entire class, or next to a test method to run only that method.
- Test execution will begin, and you'll see the browser opening and the test running.
- The Test execution report will open automatically in your default web browser after the test run is completed.
- Change the target browser, operating system, timeouts, and other configurations using the ⚙️ Configuration Manager.
- Learn more about using SHAFT_Engine from the 👤 User Guide and 📚 Javadocs.
- Join our to get notified by email when a new release is pushed out.
- After upgrading your Engine it is sometimes recommended to delete the properties folder
src\main\resources\properties
and allow SHAFT to regenerate the defaults by running any test method.
- This template comes preloaded with some Selenium grid 4 powered CI/CD pipelines to get you started!
- Navigate to "Actions" and then select "Desktop Browser Tests" from the side menu
- Click "Run workflow" and confirm your choice.
- You will notice that the pipeline has started building, and you can download the execution reports once the execution is completed.