WebDriver Keyword Automated Testing Framework

Jump to end of metadata
Produced by Chris Kretler, last modified by Kent Fitzgerald on Jan 15, 2014 Go to start of metadata


The Keyword Framework has been created to enlarge Webdriver Training New Jersey automated operational testing into a broader selection of users, and to make people comfortable with Selenium Online Webdriver Tutorial New Jersey automation more effective.

The Framework empowers users to make test instances in a pipe-delimited format, which is read by the framework and handed to the Selenium Online Training  New Jersey (Selenium) automated screening application as an automated script.

Users determine their actions in simple terms comprehended by the framework, getting rid of the need to master a sophisticated programming language for Selenium Tutorial Online New Jersey. For more information about tutorials on Selenium for beginners go here: http://seleniumtutorialsforbeginners.com/.

Instructions for Creating Tests

  1. Please find a sample script here. Scripts include chain of Selenium coaching New Jersey commands that tell the framework how to analyze the application.
  2. These commands are pipe-delimited, with one-line per command.
  3. The very first item on a line should be a recognized keyword.
  4. The list of accepted key words can be Tutorial on Selenium  New Jersey  found here.
  5. A good way to make a script will be to walk through a manual test-case, making a script that mimics your actions.
  • When you click on a button using a label of ‘Log-In’, merely add the specified command to your file:
    click| Login
  • In case you wish to verify the next text appears on your own page “my sample text”, include the following line:
    verifyText| my sample text
  • If you want to use a variable value, Add a $ to a variant name, like this:
    click| $mySite

This line will examine a variant called ‘mySite’ from a variables file and click on the contents of the variable. That is advantageous where you want to immediately change users for Selenium Online New Jersey or websites across several scripts.

The variants file will need to be defined in your parameters file, described in the ‘Guidelines for Working Tests’ area below.

As soon as your script is completed, save it as a plain-text file. If your script(s) uploads any files, put these files in a standard directory. The Selenium Online New Jersey framework requires that the text file exist that comprises the complete path to your scripts as well as the arrangement of their execution.

As an example, a test listing might exist that includes these lines:

  • /storage/code/svn/edu/umich/keyword/csv/gradebook/01_Gradebook_Instructor_AddItem.csv
  • /storage/code/svn/edu/umich/keyword/csv/gradebook/02_Gradebook_Instructor_EditItem.csv
  • /storage/code/svn/edu/umich/keyword/csv/gradebook/03_Gradebook_Instructor_ImportGrades.csv
  • /storage/code/svn/edu/umich/keyword/csv/gradebook/04_Gradebook_Instructor_ChangeGradeOptions.csv
  • /storage/code/svn/edu/umich/keyword/csv/gradebook/05_Gradebook_Instructor_OverrideGrades.csv

Each of the scripts will be executed by the framework in the order it seems in the evaluation list.

Instructions for Running Tests

The Keyword Framework is a standalone java application, created using Java 1.6. You will have to have an installed java jvm 1.6 or greater on your computer.

A parameters.txt file must be there in the same directory as the keywordFramework.jar file, containing the following advice:

  1. os – This can either be ‘Windows’, or anything else. This can be used internally by the Selenium New Jersey framework to comprehend the orientation of forward and backward slashes “/” and “”. Essentially the value of ‘Windows’ teachers the framework to transform forward-slashes to back-slashes. Some other term is dismissed. Default is ‘mobile Me’.
  2. browser – Can be ‘firefox’, ‘internet explorer’, or ‘chrome’. Default is ‘*firefox’. NOTE: There is currently a bug in Selenium  New Jersey. The Chrome driver that breaks file uploads. WebDriver Training New Jersey knows of this and should be releasing a patch in early Autumn 2011. Also, IE users would want to make sure their security options are set according to the article.
  3. testList – The basic text file that indicates which tests you want to run along with Selenium New Jersey, the definite path to all those scripts.
  4. variablesFile – The file which homes your variables. It might sit anywhere on your local machine for Selenium New Jersey. There’s no default option
  5. downloadDirectory – The directory which will save downloads briefly while they’re verified for Selenium Online New Jersey. Note: This setting can-not alter the default download directory within the Chrome browser. Users who are testing Chrome should set this setting to your browser’s present download directory.
  6. logDirectory – The directory that will save your Selenium online New Jersey log files. All evaluations to get a given run will be stored in a subdirectory named following the time where the tests started.
  7. fileDirectory – The directory which stores documents which are utilized as uploads by Selenium course Video Tutorials test scripts. This is all the directory for storing baseline variations of files that will be compared against down load documents to confirm the correct files have been downloaded.

A sample parameters file for Linux customers can be found here.

Once your scripts are written, as well as your parameters file is created, you’re ready to to perform your tests. Open a command-line and navigate to the directory which includes the Selenium elearning Videos keyword Framework.jar file and enter the following line:

java -jar keyword Framework.jar

The framework wants a few seconds to get going, but ultimately a browser will launch and your test scripts should begin to run. By default, the browser is shut at the conclusion of every test script and re-launched before Selenium the following one. Don’t be alarmed if you see browsers opening and closing often.

Directions for Viewing Test Results:

All logfiles are saved in the directory indicated by your log_Directory parameter. Different directories (named following the timestamp of your test run) contain the logs of each and every test run.

Within each sub-folder is a file called report.txt, which display which Selenium New Jersey test cases passed and failed, in addition to summary stats for several cases. Additionally there are individual log files for every single test case.

In case of failure, a screen shot is gathered in the browser at the period of failure and saved in the exact same subdirectory as the log files. The screen shot is named following the unsuccessful test case.

Suggestions and Tricks:

  1. Windows customers attempting to check downloaded pdfs may observe that the files open in your browser rather than downloading.
  2. Within Chrome, this behaviour could be modified by opening content settings and disabling add-on for pdfs.
  3. I had 2 that desired disabling.


  1. The Keyword for Training on Webdriver New Jersey Framework jar might be obtain here. The parameters documents can be found here.
  2. The source-code is available here for Selenium New Jersey. Just the java files, and dependencies, are used in assembling the jar.
  3. Some sample scripts are available here. These scripts were created to function with the University of Michigan’s branded version for Selenium Webdriver Training Online New Jersey of Sakai (CTools).
  4. hey’re going to have to be altered to function for Selenium Sakai QA surroundings.

Leave a Reply

Your email address will not be published. Required fields are marked *