Share this page

# Create a testing project in Android Studio

In Android Studio, you can create a Functional Testing For Developers module using the installed templates. The module template is based on JUnit, but includes enhancements to help you create mobile tests easily.

In this topic:

## Create a Functional Testing For Developers module

1. If you are working with a Maven repository, follow the instructions in Prerequisites for Maven-based projects.
2. Open the project to which you want to add the new module.
3. In Android Studio, click File > New > New > Functional Testing for Developers > FTD Module.

4. On the Create New FTD Module dialog box, enter the Module name and the Java package name, and then click Finish.

   A Functional Testing for Developers module is created with all the required resources.

5. If you are working with a Maven repository, open the module's build.gradle file, and follow the instructions in the file.
6. If you are working with OpenText Functional Testing for Developers from your file system and not with a Maven repository and you want to use the OpenText Functional Testing for Developers JavaDoc, you need to add it manually from the Library Properties of the UFT Developer SDK JAR.

Back to top

## Android Studio template content

The Functional Testing for Developers module template for Android Studio includes the following:

- An FTDTest.java template where you write your tests.

  The template includes setup code, tear-down code, and a single `@Test` annotation containing an empty `test()` method.

  Rename this method to whatever you want to call your test. You can add multiple `@Test` annotations if you want to include several tests in your class. Each `@Test` annotation should declare a void test method that contains the main code for that test.

- The resources\leanft.properties file, which enables you to customize some test settings. For details, see Customize test settings.

- UnitTestClassBase, which controls what happens during the different phases of your run, including running and closing the runtime engine.

- References to the com.hp.lft.sdk, com.hp.lft.verifications, and com.hp.lft.sdk.mobile libraries.

- build.gradle scripts.

Back to top

Next steps:

- Test objects
- Add steps to your tests
- Run tests
- Analyze run results

https://admhelp.microfocus.com Functional Testing for Developers 8942
Tips to improve your search results... OpenText™ Functional Testing for Developers Help Center OpenText™ Functional Testing for Developers Help 25.2 All View Local Help Center View Online Help Center Version: