Skip to main content

RKTracer Integration


Developed by RKValidate, RKTracer is a Code coverage tool capable of generating coverage data for different programming languages like C, C++, C#, Java, Kotlin, JavaScript, Python, etc; regardless of what compiler, cross compiler, embedded targets, or servers you use to test your apps.

With LambdaTest and RKTracer, you can generate Code coverage for your web and mobile apps across 3000+ real browsers, devices, and operating system combinations.

RKTracer With Web Automation On LambdaTest


  1. Download the LambdaTest Java-TestNG GitHub repository.

  2. To run the single test using TestNG, pass the build command by prefixing it with "rktracer"

rktracer mvn test -D suite=single.xml
rktracer
  1. Pass the below command to get the test results.
rkresults
rktracer

RKTracer With App Automation On LambdaTest


  1. Build your app with the RKTracer tool embedded.
  2. Login to your LambdaTest account and perform the automated testing of your app.
  3. Navigate to the App Automation dashboard on LambdaTest.
  4. Download the Device log file from LambdaTest App Automation dashboard.
rktracer
  1. Place the downloaded Device log file in your app directory.
  2. Convert the file from JSON to .txt with below command json2rk devicelog.json > rk-coverage.txt.
rktracer
  1. Pass the below command to get the test results.
rkresults
rktracer

RKTracer With Real Time App Testing On LambdaTest


  1. Build your app with the RKTracer tool embedded.
  2. Login to your LambdaTest account and perform the real-time testing of your app.
  3. Download the App logs of the real-time app test and place them in the build code directory.
rktracer
  1. Open the terminal from that folder and run the command node har2rk.js <name of device log har file>. It will convert the harfile into rkcoverage.txt.

  2. Run the below command to get the results.

“rkresults”
rktracer