-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
# testrail-api-webdriver | ||
Api which is used to create runner and update the result for that runner in testrail | ||
Api which is used to create runner and update the result for that runner in testrail , It provides the basic functionality to authenticate API requests, provides generic support for read and write requests. | ||
|
||
1. Environment setup | ||
|
||
Please add the contained package to your application or project (e.g. in Eclipse). The API binding also has a separate, external dependency on the JSON.simple library which can downloaded here: | ||
|
||
https://code.google.com/p/json-simple/ | ||
|
||
2. Set up your APIClient using this function | ||
|
||
intializeClient(String url) | ||
|
||
Eg: | ||
Program api = new new Program(); | ||
api.intializeClient("https://<server>/testrail/") | ||
|
||
3. Set your username and password using this function | ||
|
||
setUser(String username, String password); | ||
|
||
Eg: | ||
api.setUser("[email protected]", "12345678"); | ||
|
||
4. To add Runner to your test using this function | ||
|
||
add_run(pid, suiteid, run_name, r_description, r_assignedto_id, r_include_all); | ||
|
||
|
||
|
||
Name Type Description | ||
|
||
pid int project id | ||
|
||
suite_id int The ID of the test suite for the test run (optional if the project is operating in single suite mode, required otherwise) | ||
run_name string The name of the test run | ||
|
||
r_description string The description of the test run | ||
|
||
r_assignedto_id int The ID of the user the test run should be assigned to | ||
|
||
r_include_all bool True for including all test cases of the test suite and false for a custom case selection (default: true) | ||
|
||
|
||
|
||
|