Skip to content

Files

Latest commit

 

History

History
133 lines (99 loc) · 4.74 KB

rkvalidate-integration.md

File metadata and controls

133 lines (99 loc) · 4.74 KB
id title hide_title sidebar_label description keywords url site_name slug
rktracer-integration
RKTracer Integration
true
RKTracer
LambdaTest and RKTracer integration allows you to generate Code coverage for your web and mobile apps across 3000+ real browsers, devices, and operating system combinations.
rktracer lambdatest
rktracer integration
rktracer integration with lambdatest
LambdaTest
rktracer-integration/
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "RKTracer Integration", "item": "https://www.lambdatest.com/support/docs/rktracer-integration/" }] }) }} ></script>

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

<img loading="lazy" src={require('../assets/images/rktracer-integration/1.png').default} alt="rktracer" width="1345" height="627" className="doc_img"/>

  1. Pass the below command to get the test results.
rkresults

<img loading="lazy" src={require('../assets/images/rktracer-integration/2.png').default} alt="rktracer" width="1345" height="627" className="doc_img"/>

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.

<img loading="lazy" src={require('../assets/images/rktracer-integration/3.png').default} alt="rktracer" width="1345" height="627" className="doc_img"/>

  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.

<img loading="lazy" src={require('../assets/images/rktracer-integration/4.png').default} alt="rktracer" width="1345" height="627" className="doc_img"/>

  1. Pass the below command to get the test results.
rkresults

<img loading="lazy" src={require('../assets/images/rktracer-integration/5.png').default} alt="rktracer" width="1345" height="627" className="doc_img"/>

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.

<img loading="lazy" src={require('../assets/images/rktracer-integration/6.png').default} alt="rktracer" width="1345" height="627" className="doc_img"/>

  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"

<img loading="lazy" src={require('../assets/images/rktracer-integration/7.png').default} alt="rktracer" width="1345" height="627" className="doc_img"/>