Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
/ kukumber-rp-agent Public archive

Kotlin implementation of ReportPortal agent-java-cucumber for cucumber.io classes test model

Notifications You must be signed in to change notification settings

scormaq/kukumber-rp-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kukumber-rp-agent

Kotlin implementation of ReportPortal agent for new Cucumber test model (Cucumber 2.x)

How to test

To see how agent works, do next:

  1. Set up src/main/resources/reportportal.properties;
  2. Make sure your main test class (in this project - com.github.scormaq.cucumber.CucumberTestSuite) contains agent, applied as plugin;
  3. Run gradlew test (be aware that tests contain 1 failure for demo purpose);
  4. Go to your ReportPortal instance and see how launch was reported;
  5. Use com.github.scormaq.rp.ExtKukumberRpScenarioFormatter instead of com.github.scormaq.rp.KukumberRpScenarioFormatter to see how screenshots are reported

Sending files

Agent is capable to send files to ReportPortal, but extra configuration is required:

  • To enable sending files for failed steps (e.g. screenshots for UI tests) use as plugin your own extension of class com.github.scormaq.rp.KukumberRpScenarioFormatter with implemented method fun getFailureData(): File?
  • To send files in regular steps use Cucumber embed events (refer to feature FeatureWithAttachments.feature for example)

Miscellaneous notes

  • Reporting logs is out of scope of this agent (log4j2 ReportPortal appender used here for testing - refer to src/main/resources/log4j2.xml for configuration example);
  • While sending screenshots make sure property rp.convertimage is set to false, otherwise ReportPortal client fails to emit log data

Links

Find more documentation at:

About

Kotlin implementation of ReportPortal agent-java-cucumber for cucumber.io classes test model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published