This document describes Python 2 library that wraps EasyQA REST API.
$ pip install easyqa
[required]
- base_url - Your server url (default is easyqa cloud(https://app.geteasyqa.com))
- email - Your email
- password - Your password
- project_token - Your project token. How find project token
from easyqa.session import Session
easyqa = Session(login='<your email>', password='<your password>', base_url='<your server>', project_token='<your project token>')
# get all issues from project
easyqa.get_issues()
[required]
- issue_id - Issue ID
# get one issue by id
easyqa.get_issue_by_id(issue_id)
# get one issue by id in project
easyqa.get_issue_by_id_in_project(issue_id)
[required]
- summary - Issue summary
[optional]
- test_object_id - ID test object on site
- description - Issue description
- issue_type - Type of issue ('bug', 'documentation', 'task', 'feature', 'usability_problem', 'crash')
- priority - Issue priority ('low', 'medium', 'high', 'critical')
- assigner_id - Issue assigner ID
- file - File which will be attached to issue
# create one issue
easyqa.create_issue(summary, **kwargs)
# create one issue with optional fields
easyqa.create_issue(summary='Test', description='test description')
[required]
- issue_id - Issue ID
- summary - Issue summary
[optional]
- test_object_id - ID test object on site
- description - Issue description
- issue_type - Type of issue ('bug', 'documentation', 'task', 'feature', 'usability_problem', 'crash')
- priority - Issue priority ('low', 'medium', 'high', 'critical')
- assigner_id - Issue assigner ID
- status_id - Status ID
- file - File which will be attached to issue
# Update issue by id
easyqa.update_issue_by_id(issue_id, summary, **kwargs)
# update one issue with optional fields
easyqa.update_issue_by_id(issue_id=2, summary='Test', description='test description')
# update one issue by id in project with optional fields
easyqa.update_issue_by_id_in_project(issue_id=2, summary='Test', description='test description')
[required]
- issue_id - Issue ID
# delete one issue
easyqa.delete_issue_by_id(issue_id=2)
# delete one issue by id in project
easyqa.delete_issue_by_id_in_project(issue_id=3)
[required]
- issue_id - Issue ID
- attach_file - File
# create attachment
easyqa.create_issue_attachment(issue_id=1, attach_file'text.txt')
[required]
- attachment_id - Attachment ID
# delete attachment
easyqa.delete_attachment(attachment_id=12)
# get all your organizations
easyqa.get_organizations()
[required]
- id - Organization ID
# get one organization by id
easyqa.show_organization(id)
[required]
- title - Organization title
[optional]
- description - Organization description
# create one organization
easyqa.create_organization(title='Test')
# create one organization with optional fields
easyqa.create_issue(title='Test', description='test description')
[required]
- id - Organization id
[optional]
- title - Organization title
- description - Organization description
# update one organization
easyqa.update_organization(id=1, title='Test', description='test description')
[required]
- id - Organization id
# delete one organization
easyqa.delete_organization(id=2)
# get all your projects
easyqa.get_projects()
[required]
- id - Projects ID
# get one project by id
easyqa.show_project(id)
[required]
- org_id - Organization id
- title - Project title
# create one project
easyqa.create_project(org_id=1, title='Test')
[required]
- org_id - Organization id
[optional]
- title - Project title
# update one project
easyqa.update_project(org_id=1, title='updated project')
[required]
- id - Project id
# delete one project
easyqa.delete_project(id=2)
[required]
- organization_id - Organization id
# get all roles from organizations
easyqa.get_roles(organization_id=1)
[required]
- id - Role ID
# get one organization by id
easyqa.show_role(id=1)
[required]
- organization_id - Organization id
- user_id - User id
- role - Role (available: 'user', 'admin')
# create organization role
easyqa.create_organization_role(organization_id=1, user_id=12, role='user')
[required]
- organization_id - Organization id
- user_id - User id
- role - Role (available: 'developer', 'tester', 'viewer', 'project_manager')
# create project role
easyqa.create_project_role(organization_id=1, user_id=12, role='tester')
[required]
- id - role id
- role - Role (available: 'developer', 'tester', 'viewer', 'project_manager')
# update project role
easyqa.update_project_role(id=2, role='tester')
[required]
- id - role id
# delete project role
easyqa.delete_role(id=2)
[required]
- test_module_id - Test module ID
# get all test cases from module
easyqa.get_test_cases(test_module_id=1)
[required]
- id - Test case ID
# get one test case by id
easyqa.show_test_case(id=1)
[required]
- test_module_id - Test module ID
- title - Title of the test case
[optional]
- test_case - Test case attributes
- pre_steps - Pre steps to test case
- steps - Steps to test case
- expected_result - Expected test case result
- case_type - Type of test case
# create test case
easyqa.create_test_case(test_module_id=1, title='test', steps='1. Sit in a Vulture Droid\n 2. Go to Lothal')
[required]
- id - Test case ID
- title - Title of the test case
[optional]
- test_case - Test case attributes
- pre_steps - Pre steps to test case
- steps - Steps to test case
- expected_result - Expected test case result
- case_type - Type of test case
# update test case
easyqa.update_test_case(test_module_id=1, title='test', pre_steps='1. Sit in a Vulture Droid\n 2. Go to Lothal')
[required]
- id - test case id
# delete test case
easyqa.delete_test_case(id=2)
# get all statuses
easyqa.get_statuses()
[required]
- id - Status id
# get one status by id
easyqa.show_statuses(id=1)
[required]
- name - Status name
# create status
easyqa.create_status(name='synthesizing')
[required]
- name - Status name
- id - Status id
# update status
easyqa.update_status(id=4, name='synthesizing')
[required]
- id - Status id
# delete status
easyqa.delete_status(id=2)
[required]
- test_plan_id - ID of test plan
# get all test module from test plan
easyqa.get_test_modules(test_plan_id=1)
[required]
- id - Test module id
# get one test module by id
easyqa.show_test_module(id=1)
[required]
- test_plan_id - ID of test plan
- title - Title of the test module
[optional]
- description - Description of the test module
- test_module - Test module attributes
- parent_id - Id of parent test module (If you give this parameter, this test module will be nested in parent test module)
# create test module
easyqa.create_test_module(test_plan_id=1, title='test', description='Super module')
[required]
- id - Test module id
- title - Title of the test module
[optional]
- description - Description of the test module
- test_module - Test module attributes
- parent_id - Id of parent test module (If you give this parameter, this test module will be nested in parent test module)
# update test module
easyqa.update_test_module(test_plan_id=1, title='test', description='Super module2')
[required]
- id - test module id
# delete test module
easyqa.delete_test_module(id=2)
# get all test plans from project
easyqa.get_test_plans()
[required]
- id - test_plan id
# get Test Plan by id from project
easyqa.show_test_plan(id=3)
[required]
- title - Title of the test plan
[optional]
- description - Description of the test plan
# create test plan
easyqa.create_test_plan(title='test', description='Super test plan')
[required]
- id - Test plan id
- title - Title of the test plan
[optional]
- description - Description of the test plan
# update test plan
easyqa.update_test_plan(id=2, title='test', description='Super test plan')
[required]
- id - Test plan id
# delete test plan
easyqa.delete_test_plan(id=2)
# get all test objects from project
easyqa.get_test_objects()
[required]
- id - test object id
# get Test Object by id from project
easyqa.show_test_object(id=3)
[required]
- link - Your link to site
# create test object link
easyqa.create_test_object_link(link='http://champlin.info')
[required]
- build_file - Path to ipa or apk file
# create test object link
easyqa.create_test_object_file(build_file='one.apk')
[required]
- id - Test object id
# delete test object
easyqa.delete_test_object(id=2)
# get all test runs from project
easyqa.get_test_runs()
[required]
- test_run_id - test run id
# get Test run by id from project
easyqa.show_test_run(test_run_id=3)
[required]
- title - Title of the test run
[optional]
- description - Description of the test run
- test_run_results_attributes - Attributes of test cases. If you want include they to this test run
- ...
# create test run
easyqa.create_test_run(title='Run')
[required]
- id - Test run id
- title - Title of the test run
[optional]
- description - Description of the test run
- test_run_results_attributes - Attributes of test cases. If you want include they to this test run
- ...
# update test run
easyqa.update_test_run(title='Run')
[required]
- id - Test run id
# delete test run
easyqa.delete_test_run(id=2)
[required]
- test_run_id - test run id
# get all test run result from test run
easyqa.get_test_run_results(test_run_id=12)
[required]
- test_run_result_id - test run result id
# get Test run result by id from test run
easyqa.show_test_run_result(test_run_result_id=3)
[required]
- test_run_results_id - Test run result id
[optional]
- result_status - Status of test run results, might be in "pass", "block", "untested" and "fail"
- test_case_id - Test case id
# update test run result
easyqa.update_test_run_result(test_run_results_id=21, test_case_id=12)
[required]
- id - Test run result id
# delete test run results
easyqa.delete_test_run_result(id=2)