From 62c486015ae2e17d3731a21665e4b1e0b8e9d8aa Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 6 Jun 2023 16:36:11 -0300 Subject: [PATCH] Add readme --- maestro/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 maestro/README.md diff --git a/maestro/README.md b/maestro/README.md new file mode 100644 index 000000000..5ec0ed980 --- /dev/null +++ b/maestro/README.md @@ -0,0 +1,33 @@ +This readme provides instructions on how to run the `flashlight-runner.sh` shell script. The script is designed to execute tests using the Flashlight testing framework. + +### Prerequisites +- Flashlight framework installed on your system + +### Usage +To run the `flashlight-runner.sh` script, use the following command: + +``` +cd maestro +sh ./flashlight-runner.sh +``` + +### Example +Here's an example command to run the script: + +``` +sh ./flashlight-runner.sh chat.rocket.reactnative tti.yml 3000 +``` + +### Result Output +The script will create a results folder if it doesn't already exist, using the name of the test command (with `.yml` removed) as the folder name. The results of the test will be saved as a JSON file within this folder. The file will be named `.json`, where `` is the ID of the bundle or application being tested. + +For example, if the test command is `test_command.yml` and the bundle ID is `com.example.app`, the results file will be saved as `./results/test_command/com.example.app.json`. + +In order to see results, you can run the following command: + +``` +flashlight report ./results/test_command +``` + +### Updating the Test File +Before running the test, the script will update the `appId` field in the test file specified by ``. It replaces the existing `appId` value with the provided ``. Make sure the test file contains an `appId` field that needs to be updated. \ No newline at end of file