Skip to content

GIvanovWaves/codeceptjs-testrail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testrail

Enables Testrail integration.

Requirement

To use this custom plugin

npm i codeceptjs-testrail --save-dev

Note: you should include the test case id to make it works, otherwise, this plugin has no clue which case id to be added to test run on Testrail.

An example:

Scenario('Search function is displayed @C12345', (I, homePage) => {
  I.seeElement(homePage.searchTextbox);
  I.seeElement(homePage.searchButton);
});
Configuration

Add this plugin to config file:

plugins: {
    testrail: {
       require: 'codeceptjs-testrail',
       host: 'https://peternguyentr.testrail.io',
       user: 'username',
       password: 'password or api key',
       suiteId: 1,
       projectId: 1,
       runName: 'Custom run name',
       enabled: true
 }
}

Possible config options:

suiteId: when your project is not under the single-suite mode, suiteId is needed. When you don't provide the suiteId, the first suiteId will be used as default.
projectId (Required): The project Id which is from the Testrail. This should be provided to make this plugin works runName (Optional): your desired test run name. If you done provide this test run name, default test run name is as This is a new test run on ${dd/mm/yyy} which is current day.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%