Integration with EasyQA API

Lack of time and resources are the permanent problems QA specialists face to. Our team developed one more feature to save you time and make your experience with EasyQA more comfortable. Now, you have an ability to use libraries for popular programming languages such as Java, Ruby, and Python in your testing process.

Library or module is a collection of resources that allows the program to extend its functionality or interact with other ones. Using them can help you to make your code better, executable and more understandable.

Various errands like importing existing projects and tasks, tracking errors, creating and editing available attributes are much simpler with EasyQA libraries.

Let’s consider the advantage of using these libraries, and clarify the reason to smoothly integrate EasyQA into your Project.

Firstly, look at the Python code without using the libraries:

base_url= 'https://app.geteasyqa.com'

project_token = ‘OUR_PROJECT_TOKEN’

s = requests.Session()

userdata = json.dumps({

"user": {

"email": “our_login”,

"password": “our_password”

}

})

response = s.post(sign_in_url, data=userdata, headers= {'content-type': 'application/json'})

response = json.loads(response.content)

auth_token = response['auth_token']

create_issue_url = base_url+ '/api/v1/projects/issues/create'

data_issue= {

"token": project_token,

"auth_token":auth_token,

"summary": “Test bug”

"description": “Bug steps”

}

s.request(method=’POST’, url=create_issue_url , data=data_issue, .headers = {'content-type': 'application/json'})

Now, the same code with libraries connected:

Even non-specialist can notice the difference. Code became simpler and more executable.  You can save lot or resources to run it. And, indeed, you can save a lot of time and energy for other tasks performance.

Now, let’s know about the exactly way, that EasyQA libraries are integrated with your Project.

EasyQA Java library integration

You should follow the next steps for the EasyQA Java library integration:

  1. Go to the GitHub https://github.com/thinkmobiles/easyqa_library_java

EasyQA Java libraries

2. Download the library and add it to your Project.

EasyQA_Java_libraries2

3. To start using EasyQA Java library, initialize it with the BaseUrl parameter - the Base URL of EasyQA:

EasyQA easyQA = new EasyQA(BaseUrl);

"https://app.geteasyqa.com/" - if you use Cloud EasyQA Test Management Tool.

Having this done gives you access to all of the library’s available methods. Keep in mind that full documentation with all available methods is available on GitHub along with other useful stuff. Following this link, you will find all information about EasyQA API.

Back to examples, let’s get a full list of Project’s team members with libraries integrated:

Map<String, String> members= easyQA.membersList(token);

Executing this will give you the number of members variable.

EasyQA Python library integration

If you prefer Python, integration process is even simpler.

  1. Download it from the Github

https://github.com/thinkmobiles/easyqa_library_python

EasyQA_Python_libraries

2. Enter the “pip install easyqa” into the terminal

3. Import library into Project, create session class object and put it into easyqa variable:

from easyqa.session import Session

easyqa = Session(login='<your_email>', password='<your_password>', base_url='<your_server>', project_token='<your_project_token>')

After changing arguments to those of your own, you can use all available methods to, for example, get a list of all Project’s bugs:

# get all issues from project

easyqa.get_issues()

EasyQA Ruby library integration

Follow these steps for the EasyQA Ruby library integration:

  1. Grab the library from the Github https://github.com/thinkmobiles/ruby_easyqa_api

EasyQA_Ruby_libraries

2. Install it:

gem install easyqa_api

3. Specify the log in process on EasyQA:

user = EasyqaApi::User.new(email: [email protected]', password: '1234567890')

4. Create organisation:

organization = EasyqaApi::Organization.create({ title: 'Test', description: 'Test' }, user)

And you’re ready!

We sincerely hope that our libraries will make your experience with EasyQA as comfortable as possible while making you discover new horizons and solutions.

With best regards,

Team EasyQA