Regular Expression for Ozone Connect Testing Tool
The testing tool provides a wide variety of selection of test cases to run. Some of the options are as follows :
Flags:
-s This flag is associated with test suite and It takes suite id defined with key "Id" as shown in below table.
-r This flag is associated with test case and It takes keys "Id" and "keyword" as shown in below table. The Id searches for the expression among all test Ids. And the keyword searches for the expression in the test names.
Absent of any flag or both flag will result in execution of all respective entities.
Sr. | Regex Pattern | Outcome |
---|---|---|
1 | -s "Id:[GET /accounts]" -r "Id:[.*]" | Execute all test cases (.*) from the GET /accounts test suite only. |
2 | -s "Id:[GET /accounts]" -r "Id:[AIS_A001]" | Execute only the test case AIS_A001 from the GET /accounts test suite. |
3 | -s "Id:[GET /accounts]" -r 'Id:[!AIS_A001]' | Execute all test cases (.*) from the GET /accounts test suite except the test whose Id is AIS_001. |
4 | -s "Id:[GET /accounts]" -r "Id:[001]" | Execute only the test case which has 001 in the test Id. |
4 | -s "Id:[GET /accounts]" -r "Id:[00.]" | Execute the test cases which has the test Id from 000 to 009. |
5 | -s "Id:[GET /accounts]" -r "keyword:[.*]" | Execute all test cases (.*) from the GET /accounts test suite only. |
6 | -s "Id:[GET /accounts]" -r "keyword:[Happy]" | Execute all test cases from the GET /accounts test suite which have the word 'Happy' in their test name. |
| -s "Id:[GET /accounts]" -r "Id:[00.], keyword:[Happy]" | Execute all test cases from the GET /accounts test suite which has the test Id from 000 to 009 and have the word 'Happy' in their test name. |
7 | -s "Id:[GET /accounts]" -r 'Id:[00.], keyword:[!Happy]' | Execute all test cases from the GET /accounts test suite which have ‘001’ in there test case Ids and also does not have the word 'Happy' in their test name. |
8 | -s "Id:[GET /accounts]" -r "keyword:[Happy]" | Execute all test cases from the GET /accounts test suite which have ‘Happy’ in there test name. |
9 | -s "Id:[GET /accounts]" -r ‘keyword:[!Happy, header]’ | Execute all test cases from the GET /accounts test suite which does not have ‘Happy’ in there test name and also have 'header' in test name. |
10 | -s "Id:[GET /accounts]" -r "Id:[001,002,003]" | Execute all the tests from the GET /accounts test suite which have the testId among one of 001, 002, 003. Test cases from other suites will not be attempted for execution. |
11 | -s "Id:[GET /accounts,GET /accounts/{accountId}/direct-debits,GET /customers]" -r "Id:[.*]" | Execute all the test case from the 3 test-suites.
Test cases from other suites will not be attempted for execution. |
12 | -s "Id:[.*]" -r "Id:[.*]" | Run all the test cases in all the test suites. |
13 |
| If -s -r not provided then all test suits and test cases will get execute |
Related content
© Ozone Financial Technology Limited 2024-2025
Ozone Non Commercial Software EULA