Quick Start with Web Automation
Before start to automate your Web project, You need to install the Selenium IDE browser extension
In this example, We will automate the ABC News Website.
Let’s start!
1- Create a new Web automate project
Click PROJECTS and select the WEB tab
Click ADD URL button
Write App Name, Version, base URL of the website and click ADD PROJECT button
URL will be your opening page and must start with http:// or https://
2- Develop your test cases
You will be navigated CASE MANAGEMENT automatically
Click ADD SECTION and write your SECTION name
Click ADD SECTION to save your Section
Click ADD CASE button in order to add a new case
Enter your case title and select your favorite Coding Language and Framework
Click ADD CASE button
Open Selenium IDE Browser Extension by clicking it from the right-top menu. We will use the Chrome browser to debug the web application.
Click the “Record a new test in a new project” option
Provide a name for your new Selenium IDE Project
Set your project’s base URL
Click the Start Recording button. Now you should see a new window that will be opened and navigates to the base URL.
Record your test scenario’s Steps
Mouse over the TestName on Selenium IDE and Open the menu
Click Export option
Choose your favorite Language and click the Export button. In this example, we will choose Java.
Save the file to your computer.
Open the saved file with your favorite Text Editor
Just copy the needed step codes with selectors.
Close Selenium IDE
Go back to Momentum Suite’s Automation Case Management
Click ADD STEP button
Write your Step Title and copy-paste the needed step code(s)
Click the ADD STEP button to save the step title and codes
3- Run a test and check the results
Click the TEST RUNS tab to create a new Test Run
Click CREATE NEW TEST button to create a new Test Run
Set Your Test Name
Check your TestCase(s) which will run
Click the SET TIME button
Click the SELECT DEVICE button
Choose your browser(s) which will run your TestCases
Click the RUN TEST button
After a few seconds, your test will start automatically. You can inspect the TestRun when the test goes RUNNING status
Click the VIEW RESULTS button
You should see your TestCases with Steps and the overall status of your test
Click on any STEP name to inspect
Select a browser from the list
Review the Test Results (Logs, Screenshots, and more..)
There will be 2 screenshots on the screen. 1st screenshot has taken before the step run, 2nd one is after the step run