Creating an Image Asset

You can create image assets in one of the following ways:
  • By inserting a new image asset into an existing visual test or script.
  • During recording.
  • By using the Asset Browser.

To create a new image asset in the Asset Browser, perform the following steps:

  1. 表示 > アセット ブラウザ を選択するか、開始画面入門ガイド > アセット ブラウザ を選択します。
  2. In the menu, click New Image Asset.
  3. In the Asset Types list, right-click Image Asset and select New Image Asset. The image asset UI opens.
  4. Select how you want to add an image to the asset.
    • If you want to use an existing image, click Browse and select the image file.
    • If you want to capture a new image from the UI of the application under test, select Capture. If you are testing a Web application, you can select the browser on which you want to capture the image from the Select Application window.
    • If you want to capture a new image after a delay of three seconds, for example to expand a menu in the application under test before the image is captured, select Capture with Pause.
  5. If you have selected to capture a new image, select the area of the screen that you want to capture and click Capture Selection.
  6. In the Name text field, type a meaningful name for the new image asset.
    注: If you have selected to use an existing image, the name of the image asset is by default the name of the existing image.
  7. Optional: Click Verify to check if Silk Test Workbench can find the image asset in the UI of the AUT. Web アプリケーションをテストする場合、アプリケーションの選択 ウィンドウからイメージをキャプチャするブラウザーを選択できます。
  8. Optional: Check the Click position check box to select the location on which any clicks on the image asset are performed. The default location is the center of the image. Type the location into the x and y fields or select the location on the image.
  9. 精度レベル を指定します。 精度レベルは、検証されるイメージがテスト対象アプリケーションのイメージと異なっていてもよい度合いを定義し、これを超えて異なっている場合、Silk Test Workbench はイメージが異なっていると判断します。これは、画面解像度が異なる複数のシステムまたはブラウザをテストする場合に役立ちます。誤検出を防ぐため、できるだけ精度レベルを高くすることを推奨します。デフォルトの精度レベル値は、オプションで変更できます。
    注: 精度レベル を 5 未満に設定した場合、イメージの実際の色が比較で考慮されなくなります。イメージのグレースケール表現だけが比較されます。
  10. Click Save to save the image asset into the Silk Test Workbench repository, or click Save and close to additionally close the image asset UI.

The new image asset is listed in the Asset Browser, and you can use it to perform image clicks.

You can add multiple images to the same image asset.

注: To add an image click while recording against a mobile browser, you can right-click in the Recording window and select ImageClick from the action list.