How to Use TAF - Aperrett/TAF GitHub Wiki

4.0 RUNNING A TEST SUITE

4.1 Running the TAF in Ruby Native

Having created the Test Specifications and defined the Test Suite you are now in a position to run the program to test if the specifications work.

In the command line, navigate to your user workspace. From there type: taf --tests <test folder> --browser <browser name>

The program should start running and print messages to the console window to show progress. If successful, you will see an ‘Overall Test Summary’ message and no errors You should also see the browser page opening and web pages being displayed, hopefully as expected.

4.2 Running the TAF in Docker

Having created the Test Specifications and defined the Test Suite you are now in a position to run the program to test if the specifications work.

In the command line, navigate to your user workspace. From there type:

docker run --rm -e URL="http://localhost:3002" -e USER_EMAIL="[email protected]" -e USER_PASS="123" -v "$(pwd)"/target:/app/Results:cached taf --tests <test folder> --browser firefox-headless

The program should start running and print messages to the console window to show progress. If successful, you will see an ‘Overall Test Summary’ message and no errors You should also see the browser page opening and web pages being displayed, hopefully as expected.