Creating a Silk4J Project

When you create a Silk4J project using the New Silk4J Project wizard, the wizard contains the same options that are available when you create a Java project using the New Java Project wizard. Additionally, the Silk4J wizard automatically makes the Java project a Silk4J project.

  1. In the Eclipse workspace, perform one of the following steps:
    • Click the drop-down arrow next to the Silk Test toolbar icon Toolbar icon and choose New Silk4J Project.
    • Right click in the Package Explorer and select New > Other. Expand the Silk4J folder and double-click Silk4J Project.
    • If you installed or updated Silk4J to an existing Eclipse location, choose File > New > Other . Expand the Silk4J folder and double-click Silk4J Project.
    The New Silk4J Project wizard opens.
  2. In the Project Name text box, type a name for your project. For example, type Tutorial.
  3. Optional: Click Next to select the application that you want to test. For the tutorial, click Next. The Select an application page opens.
  4. If you have not set an application configuration for the current project, select the tab that corresponds to the type of application that you are testing:
    • If you are testing a standard application that does not run in a browser, select the Windows tab.
    • If you are testing a web application or a mobile web application, select the Web tab.
    • If you are testing a native mobile application, select the Mobile tab.
  5. To test a standard application, if you have not set an application configuration for the current project, select the application from the list.
  6. To test a web application or a mobile web application, if you have not set an application configuration for the current project, select one of the installed browsers or mobile browsers from the list.
    1. Specify the web page to open in the Enter URL to navigate text box. If an instance of the selected browser is already running, you can click Use URL from running browser to record against the URL currently displayed in the running browser instance. For the tutorial, select Internet Explorer and specify http://demo.borland.com/InsuranceWebExtJS/ in the Enter URL to navigate text box.
    2. Optional: If you want to test a web application on a desktop browser with a predefined browser size, select the browser size from the Browser size list.
      For example, to test a web application on Apple Safari and in a browser window which is as big as the screen of the Apple iPhone 7, select Apple iPhone 7 from the list.
    3. Optional: Select an Orientation for the browser window.
    4. Optional: Click Edit Browser Sizes to specify a new browser size and to select which browser sizes should be shown in the Browser size list.
  7. To test a native mobile application (app) if you have not set an application configuration for the current project:
    1. Select the mobile device, on which you want to test the app, from the list.
    2. Select the native mobile application.
      • If you want to install the app on the mobile device or emulator, click Browse to select the app file or enter the full path to the app file into the App file text field. Silk4J supports HTTP and UNC formats for the path.
      • If you want to use an app that is already installed on an Android device, select the app from the Package/Activity list or specify the package and the activity in the Package/Activity field.
      • If you want to use an app that is already installed on an iOS device, specify the Bundle ID.
      • If you want to use an app that is available in UFT Mobile, specify the App identifier.
  8. Click Finish. A new Silk4J project is created that includes the JRE system library and the required .jar files, silktest-jtf-nodeps.jar and junit.jar.
  9. Select the type of test that you want to record:
    • To bundle the recorded actions into one or more keywords, select Keyword-Driven Test.
    • To record the test without creating keywords, select Silk Test JUnit Test.
    For the tutorial, select Silk Test JUnit Test.
  10. Click Yes to start recording a new Silk4J test or click No to return to the Eclipse workspace.

    For the tutorial, click No.