Source Code for SSense WebApplication
ssense / node-cucumber-testrail-sync Goto Github PK
View Code? Open in Web Editor NEWCucumber TestRail integration module
License: MIT License
Cucumber TestRail integration module
License: MIT License
Hello,
I am trying to sync some tests from TestRail to my local machine but i am getting the following message:
Syncing with TestRail ...
Invalid gherkin content for TestCase #43491-invalid-login
Background:
Given I am on login page
Is the keyword "Background" supported" ? If not, how should i handle the preconditions ?
Thank you,
Steffen
Hello,
I am trying to sync some tests from TestRail to my local machine but i am getting the following message:
Syncing with TestRail ...
Invalid gherkin content for TestCase #43491-invalid-login
Background:
Given I am on login page
Is the keyword "Background Supported" ? If not how should i handle the preconditions ?
Thank you,
Regards,
Angelos
In addition to Regex, Cucumber JS supports string patterns:
https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/string_patterns.md
Strings patterns make it easier to work with scenario outlines,
Relates to Issue #6
The sync-scenarios.png
image in README should be polished before releasing this module as open-source.
Currently, you're prompted to enter Yes/No if your local features don't match the remote feature descriptions.
It would be nice if there was a non-interactive switch (cucumber-testrail-sync --non-interactive
) that would exit with status code 0 if the local and remote features match or exit with code 1 if there's a mismatch.
This would help introduce a new step in CI that would fail a build if the requirements for a test have changed but the features haven't been synced locally.
Hello and congratulations for your work. I was really looking for a tool like this.
Though i have the following issue. I have followed the process as you describe in your doc but when i run the command to sync between the TR and my Cucumber tests i get the following error:
$box: ~/node_modules/.bin/cucumber-testrail-sync
undefined:1
File not found.
^SyntaxError: Unexpected token F in JSON at position 0
at Object.parse (native)
at Request._callback (/Users/usr/node_modules/testrail-api/index.js:78:30)
at Request.self.callback (/Users/usr/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/Users/usr/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage. (/Users/usr/node_modules/request/request.js:1091:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
my configuration is the following:
module.exports = {
testrail: {
host: 'https://testrail.someurl.com/testrail/index.php',
user: 'user',
password: 'pass', // password or api key
filters: {
plan_id: '10' // required: the project's plan id
}
}
};
Can you help a bit ?
Our team wants to write tests like this:
Hi there,
I have a few feature files in testrail with Scenario Outline and a table but when I try to sync this up I get
"Invalid gherkin content for TestCase ..."
This is a valid Cucumber format
To have a well displayed table of element in TestRail, we're using double and triple pipes separator like so:
|||:expirationDate|:expiry_month|:expiry_year
|| 1006 | 10 | 2006
|| 1207 | 12 | 2007
|| 0709 | 07 | 2009
When we import the test, the triple pipes separators are replaced by two pipes, which brakes the Gherkin syntax in Cucumber.
Results:
||:expirationDate|:expiry_month|:expiry_year|
| 1006 | 10 | 2006|
Would it be possible to replace any number of consecutive pipes characters by only one ?
We have some scenarios that are tested manually only that we don't want to import in our codebase.
Would it be possible to have a configuration to exclude some scenarios by using the status or same tags ?
The documentation seems to only indicate manual execution. I originally wanted to push the results to TestRail, but the syncing features looks really cool!
I have Chimp (using cucumber) running and exporting a JSON reports file.
Please advise.
In testrail: To make a code block the user can indent four spaces:
http://docs.gurock.com/testrail-userguide/userguide-editor
By indenting each line with 4 spaces, the user can make valid Gherkin. Valid Gherkin can be parsed by existing libraries without too much effort.
Cucumber-testrail-sync should make efforts to detect if text is written in "code." If it is written in code, then respect the existing formatting.
Relates to issue #6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.