Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Info

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

  • Press ENTER to Save Click ADD SECTION to save your Section

Image Added
  • Click ADD CASE button

Image Removed
  • Write your TestCase Name and press ENTER

Image Removed
  • Select in order to add a new case

  • Enter your case title and select your favorite Coding Language and Framework

  • Click ADD CASE button

Image RemovedImage Added
  • Open Selenium IDE Browser Extension with 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 you should see a new window that will be opened and navigates to the base URL.

  • Record your Test 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

Image RemovedImage Added
  • Go back to Momentum Suite’s Automation Case Management

  • Click ADD STEP button

Image Added

  • Write your Step Title and Press ENTERClick Edit button on Step and copy-paste the needed step code(s)

  • Click SAVE SCRIPT button

Image Removed
  • the ADD STEP button to save the step title and codes

Image Added

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

Image RemovedImage Added
  • Set Your Test Name

  • Check your TestCase(s) which will run

  • Click the SET TIME button

Image RemovedImage Added
  • Click the SELECT DEVICE button

  • Choose your browser(s) which will run your TestCases

  • Click the RUN TEST button

Image RemovedImage Added
  • 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

Image RemovedImage Added
  • You should see your TestCases with Steps and Overall the overall status of your test

  • Click on any STEP nameto inspect

Image Removed
  • Select a browser from the list

Image Removed
  • 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

Image RemovedImage Added