Before we can run our test case(s) we need to set the configuration required by the harness.
Navigate to the RegressionTestHarness\config directory.
The excludes/includes files both are used by the hareness to determine what test cases(s) are to be included or excluded when running the regression pack.
Each line within these files will be treated as an include/exclude pattern.
The excludes.txt will contain the following exclude pattern: **/com/examples/core/*.*
The above pattern will exclude all files within the core directory
PLEASE ENSURE YOU DO NOT REMOVE THIS DEFAULT EXCLUDE PATTERN
The includes.txt will contain the following include pattern: **/com/examples/tests/*.*
The above pattern will include all files within the tests directory
To run all tests for all packages you will require the following include pattern:
**/com/examples/*/*.*
Finally config.properties contains some properties that we can set.
Property |
Description |
Required |
use.profile
|
Use a custom firefox profile. Valid values for this property are:"yes","no"
|
No |
profile.name
|
The name of the firefox profile, assuming that the profile has been created using "firefox -ProfileManager" on the pc that the framework will be running on.
|
Yes, only if use.profile has been set.Specify either profile.name or profile.directory |
profile.directory
|
The absolute(escaped) path to the top level of a firefox profile directory if it isn't already registered with Firefox on the pc that the framework will be running on
|
host.url
|
The host URL of the site that you want to test
|
Yes |
archive.results
|
Archive test results to the archive directory for historical purposes. Valid values for this property are:"yes","no"
|
No |
bit.type
|
The bit type of the pc's OS that the framework will be running on. Valid values for this property are: "64" ,"32"
|
Yes |
The purpose of out demonstartion test case contained in Test1.java was to perfom a google search for "WebDriver API" and click on the search button.
When we converted our exported test we specified that we will test against the Internet Explorer browser.
So in order to run our test case we need to specify the minimum property values required as:
- host.url=http://www.google.com
- bit.type=64 (This is the bit-type of the OS im running)