Automating Tests

Pre-Conditions

Opening the Automated Tests Solutiuon

In Visual Studio, open TestDriver.sln in the "automation\TestDriver" subdirectory in the package. This should open with "TestDriver GUI" as the start-up project. You can run in Debug mode or build it out as an .exe.

You can open the Sample_Test.swf file in a browser to see a demonstration of an example test running.

The GUI

Interface

Since as shipped the only product that needs to be supported is SSD, the Product Selector is already filled in and disabled. It can be enabled by opening the solution in Visual Studio and changing the Listbox properties. Additional items can be added by adding them to the control collection. The Environment Selector and Suite Selector items are controlled by text files (Environments and Suite List respectively). To change these items merely change the items in the text files.

The Spreadsheet

The spreadsheet is located at the following location and must be there in order for the application to extract data from it:

..\Strive Testing Suite\TestDriver GUI\bin\Debug\Data Sheets\

Spreadsheet

How It Works

This testing application is a small data-driven application that has been tailored to drive the Student Success Dashboard using the Selenium WebDriver. The code has been included to expand if you wish. The app controls the navigation through the application and takes inputs for each step and applies those to the app, so the data that you set up actually controls the behavior of the app. Each sheet in the enclosed workbook, except for the Master sheet and the two Note sheets, controls a certain aspect of navigating the application under test. Here is what they do:

Tests are constructed on the Master sheet of the spreadsheet in the following format: (function name)|(line number). Here's an example:

TextExample

Every action taken on the application constitutes a step. There are comments in the title of each title column of each sheet to denote what that column’s data are for. The following columns are required in each sheet:

Example Test

In the following screenshot, the function name corresponds to a sheet on the spreadsheet which then supplies data to the function in the application.

Here’s a test with steps from the master sheet:

TestExample

The test's name is Initial Login. It is a regression test from the packaged Student Success Dashboard test suite. It has three steps:

Here's the data from each sheet:

Login:

Login

So in the Login field, the function will do the navigation and take the following inputs from the sheet:

vfyField:

VfyField

Basically, what this step is doing is looking at the login field and verifying that the text present matches what is expected from the spreadsheet. Here's the screen that would allow this step to pass:

Live Login

Logout:

A simple sheet that controls logout of the application.

Results

Results are published at the conclusion of each run, pass or fail. The results can be viewed on the GUI and in the resulting file. They give an in-depth recording of each test run and its successes or failures. Here’s an example of the results for a test:

Results

Return to the wiki Home