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. If you want to perform keyword-driven testing or configuration testing with Silk Central and you have a valid Silk Central license, check the Connect to Silk Central check box to configure the connection to Silk Central for keyword-driven testing. The Silk Central server is configured for all your projects, not only for the new project.
  4. Click Next. The Select an application page opens.
  5. 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.
  6. To test a standard application, if you have not set an application configuration for the current project, select the application from the list.
  7. 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.
  8. 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. Click Browse to select the app file or enter the full path to the app file into the Mobile app file text field. Silk4J supports HTTP and UNC formats for the path. Silk4J installs the app on the mobile device or emulator.
  9. Click Finish. A new Silk4J project is created that includes the JRE system library and the required .jar files, silktest-jtf-nodeps.jar and the junit.jar.
  10. Select the type of test that you want to record:
    • To bundle the recorded actions into one or more keywords, select Silk4J Keyword-Driven Test.
    • To record the test without creating keywords, select Silk Test JUnit Test.
    For the tutorial, select Silk Test JUnit Test.
  11. Click Yes to start recording a new Silk4J test or click No to return to the Eclipse workspace.

    For the tutorial, click No.