Tạo Test case bằng cách sử dụng Script Mode

Chuyên mục nói về Katalon Studio.
Forum rules
Chuyên mục nói về Katalon Studio.
Post Reply
Huy Duong
Hoc Tester
Posts: 8
Joined: Mon 27 Mar, 2017 9:49 am
Contact:

Tạo Test case bằng cách sử dụng Script Mode

Post by Huy Duong »

Tạo Test case bằng cách sử dụng Script Mode

Follow these steps to automate the above test scenario in Script view:
  • 1. Select File > New > Test Case from the main menu. The New Test Case dialog will be displayed. Provide the name for the new test case, then click OK.
    2. Once a new test case is created, you can switch to the Script view using the corresponding tab at the footer of the test case editor and observe how test steps of the Manual view are translated into Groovy script of Script view.
    3. To use a built-in WebUI keyword, enter the following syntax into the editor.
    4. Select the Open Browser keyword. This keyword will open a browser and navigate to the specified URL if provided. Selected keywords will have their description displayed along for reference.
    5. Enter the Navigate To Url keyword. This keyword will navigate to a specified URL. For now, enter the URL of Katalon Studio (katalon.com) as an input parameter.
    6. Enter the Click keyword. This keyword represents the click action on a given object. You need to specify an object for this action.
    7. Use the following syntax to refer to an object in Object Repository (alternatively, you can drag and drop the object to test case editor to generate the syntax):
    8. Enter the Verify Element Present keyword. This keyword validates if a certain object is displayed on the executing browser. Similar to the previous step, you need to specify the object to be used with this keyword.
    9. Add the Close Browser keyword and save your test case.
    10. Click on Run in the main toolbar to execute the test case.
Bh222T1oaXk



Post Reply

Return to “Katalon Studio”