Set up Running Automated UI tests on your First day at work

Get started with web test automation quickly

Table of Contents
· Installing Testing Tool: TestWise
· Verify Chrome Browser and Browser Driver
· Run the first test
· Create your first test project

Installing Testing Tool: TestWise

TestWise is a functional testing IDE that supports free, open-source test automation frameworks such as Selenium WebDriver, the most popular one that conforms to the W3C WebDriver standard. TestWise is the only software you will need to create and run tests for now.

TestWise Ruby Edition =

TestWise Standard Edition + Ruby + Testing Libraries + ChromeDriver

Launch TestWise. You will see the following popup window for 10 seconds, click the “Continue” button. You may use TestWise in this free (and full-featured) mode forever, after 15 test executions, simple restart TestWise, which takes only a few seconds.

Verify Chrome Browser and Browser Driver

Next, we want to verify the ChromeDriver for Chrome, otherwise you may not bel able drive the browser (for web testing).

Run the first test

TestWise has a sample project that we can use to run our first test.

Running the first test in spec/01_login_spec.rb

Create your first test project

Close the sample project (File > Close Project) and create a new one (File > New Project).

  it "Scroll to Contacts" do
elem = driver.find_element(:xpath, "//ul[@id='js-scroll-nav']//li//a[text()='Contact']")
elem.click
expect(page_text).to include("CONTACT ME")
sleep 0.5 # wait for JS scroll

contact_elems = driver.find_elements(:xpath, "//address/div")
expect(contact_elems[3].text).to include("MEDIUM")

driver.find_element(:partial_link_text, "MEDIUM").click
current_url = driver.current_url
expect(current_url).to eq("https://courtneyzhan.medium.com/")
end

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store