Highlighted
Established Member..
Established Member..
141 views

Can JUNIT tests be re used with VUGEN

Any KB or Reference Documents that show Support to reusing JUNIT Tests will be helpful

0 Likes
2 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Can JUNIT tests be re used with VUGEN

Hello

This is still on ealy stages but it is supported with limitations, see below

 

Initially LR covers only the “Load Testing” stage, so the feature is extending LR’s coverage on “Unit Testing” as well.

How it is implemented:

LR Addins Dev (DevOPS addins) consists from two parts: IDE’s and LR Controller’s.

Each part is projected onto two worlds:

  • .NET - NUnit framework
  • Java - Selenium framework, JUnit framework.

 

IDE’s part

Is implemented as IDE’s Addin (Visual Studio’s and Eclipse’s modern version are supported), drop-down menu with set of commands.

This part of feature allows you instrument a source code of unit test that is being currently developed with LR’s API and execute the compiled unit-test within LR’s infrastructure.

What does it mean?

Source code instrumentation means that you can add reference to LR’s API and put a function calls to LR’s API within your source code of unit test that initially doesn’t have any connection with LR. Example – LR’s logging or transitions related API.

After you have prepared and compiled your code you can execute the unit test in scope of LR. It means that LR can consume the binary representation of unit test (dll-assemble for .NET and jar or class file for Java), built a “shadow” (means at background) LR’s script over the provided unit test and replay this script by MDRV.

MDRV executes the unit test by executing the script prepared and handles LR API calls injected into unit test previously: log out the messages, indicates transactions and so on.

Can a unit test with LR APIs instrumented be executed outside LR infrastructure as usual unit test – Yes. In this case LR APIs instrumented do nothing.

 

IDE’s Addin allows you perform the actions described above, here is screenshots:

  LR Controller's part

Is implemented as ability to add a unit test module (represented as .NET dll-assembly or Java jar or class file) into Controller’s scenario (be background script creation)

0 Likes
Highlighted
Established Member..
Established Member..

Re: Can JUNIT tests be re used with VUGEN

Images on last responses are not working , can this be added as an attachment. Thanks for excellent feedback

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.