Creating a Test Case Manually

Typically, you use the Base State wizard to create a test case for Silk4J. Use this procedure if you want to manually create a test case.

  1. Choose File > New > JUnit Test Case . The New JUnit Test Case dialog box opens.
  2. Ensure the New JUnit 4 test option is selected. This option is selected by default.
  3. In the Package text box, specify the package name. By default, this text box lists the most recently used package. If you do not want to use the default package, choose one of the following:
    • If you have not created the package yet, type the package name into the text box.
    • If you have created the package already, click Browse to navigate to the package location and then select it.
  4. In the Name text box, specify the name for the test case.
  5. Click Finish. The new class file opens with code similar to the following:
    package com.borland.demo; 
     
    public class DynamicObjectRecognitionDemo {
    
    }

    where com.borland.demo is the package that you specified and DynamicObjectRecognitionDemo is the class that you specified.

Connect to the test application by creating a base state or using an attach method.