Web testing

Initial setup

Step 1: Install drivers

In order to use Cycle web Steps, a driver must be installed for Chrome, Internet Explorer, or Microsoft Edge.

With a Cycle Project open, click the Project Settings button:

Then navigate to:

Project Settings > Execution Settings > Web Drivers & Browser

Downloading Webdrivers

Chrome and IE

The downloads for Chromedriver and IEDriver executables can be found from Chromium and Selenuim:

Chromedriver

InternetExplorerDriver

The Chrome webdriver is typically named chromedriver.exe, the Internet Explorer webdriver is typically named IEDriverServer.exe. These drivers can be saved to anywhere on the hard drive, as long as you know the path to the location.

Microsoft Edge

First, ensure you install Microsoft Edge (Chromium). To confirm that you have Microsoft Edge (Chromium) installed, go to edge://settings/help in the browser, and verify the version number is Version 75 or later.

To begin automating tests with Edge, use the following steps to ensure that the WebDriver version you install matches your browser version.

  1. Go to edge://settings/help to get your version of Edge.

  2. Navigate to the Microsoft Edge Driver downloads page and download the driver that matches your Edge version number.

Set Driver Location within Cycle Settings

Once you have downloaded a given webdriver, you will need to update the driver location in Cycle Settings. The location must be exact for each browser’s webdriver, and must include the name of the driver, as shown in the image below.

Set webdriver location


There are additional settings related to web test execution in Cycle--one for automatically closing the web browser after a given Scenario is finished executing, and another to automatically close the web browser when exiting Cycle. It should also be noted that both browsers will rely on whatever proxy settings the user is using as a default.

Step 2: Update browser settings

First, note that Cycle expects all web browsers to be installed in their default locations.

Chrome and Microsoft Edge

There are no browser settings that must be updated in Chrome or Edge.

It should be noted that any settings made in a user’s Chrome browser will not be carried over into the Cycle-generated Chrome browser, because Chrome settings are tied to user profiles.

Internet Explorer

In order for Cycle to work with the Internet Explorer web browser, you must verify the following:

  • Ensure you are running the latest version of the Internet Explorer Driver Server from here.

  • In Internet Explorer, go to Settings > Zoom and ensure that zoom is set to 100%.

  • In IE's Advanced Options make sure the following settings are not checked/enabled:

    • Reset text size to medium for new windows and tabs
    • Reset zoom level for new windows and tabs
  • On IE 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings, choose "Internet Options..." from the Tools menu, and click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled "Enable Protected Mode".

  • Additionally, "Enhanced Protected Mode" must be disabled for IE 10 and higher. This option is found in the Advanced tab of the Internet Options dialog. The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.

  • For Windows 10, you also need to validate your Display Settings. Under the Scale and Layout section Change the size of text, apps, and other items should be set to 100%.

  • If you are running a popup blocker or ad blocker, ensure the site you are testing is whitelisted or the blocker is turned off.


Figure: Internet Explorer security settings
Internet Explorer security settings
  • Add the sites you wish to access to the Trusted sites zone by going to Settings Menu > Internet Options > Security > Trusted sites and clicking the "Sites" button. Add the domain of the website you wish to access to the Trusted sites list. It is very important that you add the domains you wish to test to the Trusted sites list. You must also verify that the Security level for the Trusted sites zone is not set to “High”.


Figure: Update Trusted sites list
Update Trusted sites list

results matching ""

    No results matching ""