Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this tutorial, we will create a JUnit Test in Java , using UFT Pro (LeanFT) from Micro Focus for browser automation.

...

Info
titleLearn more
Section
Column

Column


UFT Pro (LeanFT) is an advanced functional test automation solution that was designed specifically for continuous integration and continuous testing. It provides tools and capabilities that enable to easily and efficiently create robust test automation in the developer IDE and integrate it seamlessly into the CI process. LeanFT enables automating applications of applications for a wide range of technologies, including web, mobile and desktop applications.

Description

The following automated test uses LeanFT library in order to navigate through a web site website and validates the price shown for a product versus the one presented whenever when it is was added to the shopping cart.

...

After running successfuly the Test Case and generating the JUnit XML report (e.g. , TEST-testing.LeanFtTest.xml), it can be imported to Xray (either by the REST API or through "the Import Execution Results" action within the Test Execution).

...

JUnit's Test Case is mapped to a Generic Test in JIRAJira, and the "Generic Test Definition" field contains the package name, followed by the name of the class and the method name that implements the Test Case.

...

If the Test fails, for example, due to a missing web element (e.g., TEST-testing.LeanFtTest.xml), then besides the overall Test Run being marked as FAIL, you can also obtain see detailed information on the exception that was raised during the execution of the automated test.

...

Note that if you're using LeanFT's "Verify" method, that verification won't raise an exception by itself and thus, the Test will appear as being as  passed (if it didn't fail until then) even if the verification itself failed.

The "Verify" class’ class methods return a Boolean value reflecting the verification result, and in case . If it is “false”, it is possible to manually throw an exception to make the test’s test status reflecting reflect the actual verification result.

References

...