Creating a Test for a Standard Application

Before you can create a Silk4J test, you must have created a Silk4J project.

To record a test for a standard application:

  1. In the Package Explorer, select the project to which you want to add the new test.
  2. In the toolbar, click Record Actions.
  3. In the application under test, perform the actions that you want to test.
    For example, you can choose menu commands such as File > New to test menu the menu command in your application. For information about the actions available during recording, see Actions Available During Recording.
  4. Click Stop. The Record Complete dialog box opens.
  5. The Source folder field is automatically populated with the source file location for the project that you selected. To use a different source folder, click Select and navigate to the folder that you want to use.
  6. Optional: In the Package text box, specify the package name.
    For example, type: com.example. To use an existing package, click Select and select the package that you want to use.
  7. In the Test class text box, specify the name for the test class.
  8. In the Test method text box, specify a name for the test method.
  9. Click OK.

Replay the test to ensure that it works as expected. You can modify the test to make changes if necessary.