https://github.com/bliblidotcom/cucumber-serenity-testlink-integration
Integration between Cucumber , Serenity and Testlink , It will create automatically testlink test case
https://github.com/bliblidotcom/cucumber-serenity-testlink-integration
automation-test cucumber-jvm serenity-cucumber testlink
Last synced: 3 months ago
JSON representation
Integration between Cucumber , Serenity and Testlink , It will create automatically testlink test case
- Host: GitHub
- URL: https://github.com/bliblidotcom/cucumber-serenity-testlink-integration
- Owner: bliblidotcom
- Created: 2020-02-03T07:25:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-16T02:58:58.000Z (over 2 years ago)
- Last Synced: 2025-01-23T16:11:35.556Z (5 months ago)
- Topics: automation-test, cucumber-jvm, serenity-cucumber, testlink
- Language: Java
- Size: 522 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cucumber Serenity Testlink Integration
--------------------------
[](https://travis-ci.org/bliblidotcom/cucumber-serenity-testlink-integration)
This is a Plugin for integrating your cucumber test to Testlink via APIIt will Create, Update , and Report your test Result in testlink based on your cucumber Steps
#### Requirement
- Testlink With Version 1.9.15 or higher
- Java 8#### Usage
Add this in your ```pom.xml``````xml
...........Your Other Plugin.......
com.github.bliblidotcom
cucumber-serenity-testlink-integration
4.0.1
post-integration-test
testlink-serenity
[Your Testlink URL]/lib/api/xmlrpc/v1/xmlrpc.php
Your Testlink Dev Key
Your Project Name in testlink (Ex Finance , Android Apps)
Your Test Plan Name
Your Build Name in Your Test Plan Name
Your Platform Name(Optional)
...........Your Other Plugin.......
```
Don't Forget to add our blibli.com Open Source Plugin Repository```xml
................... Your other plugin Repositories .............
false
jitpack.io
https://jitpack.io```
Add new user with name and username **automation-test** in your testlink account and makesure it's able to read , write , update and execute any testcase , this user is used for updating the testcase and also for execution the testcase.
And Add plugin to generate file called **cucumber.json** in your folder **target/destination/cucumber.json** this in your Cucumber Options
```java
@CucumberOptions(features = "src/test/resources/features/"
, plugin = {"json:target/destination/cucumber.json"},
tags = {""})
public class CucumberRunner {
}
```
And Finaly you can define your testsuite in each features files via tags
```gherkin
@LookUpFeature
Feature: LookUp A Definition@Positive @Apple @TestSuiteID=12345
Scenario: Looking up the definition of 'apple'
Given the user is on the Wikionary home page
When the user looks up the definition of the word 'apple'
Then they should see the definition 'A common, round fruit produced by the tree Malus domestica, cultivated in temperate climates.'
```
For that it will searching testcase with title _Looking up the definition of 'apple'_ in testsuite 12345 ,
- if it's desn't exist , it will create new
- if it's exist and the steps is same it will just update the status execution (Passed Or Not)
- if it's exist and the steps is not same , it will create new version for that testcase and update the result as well
- You can put the tag in the feature tag , so it will inheritence in all scenario inside that feature```gherkin
@LookUpFeature @TestSuiteID=12345
Feature: LookUp A Definition@Positive @Apple
Scenario: Looking up the definition of 'apple'
Given the user is on the Wikionary home page
When the user looks up the definition of the word 'apple'
Then they should see the definition 'A common, round fruit produced by the tree Malus domestica, cultivated in temperate climates.'
@Positive @Pear
Scenario: Looking up the definition of 'pear'
Given the user is on the Wikionary home page
When the user looks up the definition of the word 'pear'
Then they should see the definition 'pear is ....'
```Or If you just want to update the execution result without update your scenario you can put tag `@TestlinkID`
```gherkin
@LookUpFeature
Feature: LookUp A Definition@Positive @Apple @TestlinkID=BLIBLI-123
Scenario: Looking up the definition of 'apple'
Given the user is on the Wikionary home page
When the user looks up the definition of the word 'apple'
Then they should see the definition 'A common, round fruit produced by the tree Malus domestica, cultivated in temperate climates.'
```It will Update Execution ***result only*** without modify your testcase in your testcase with ID **BLIBLI-123**
#### Running Test And Updating Result
Use `mvn clean verify` to update the result into testlink , since it's using maven plugin it will not update result if you run it via junit runner or right click and run test