버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

This document provides how to manage test scripts in test cases.

...

정보

To manage test plans, you need a permission such as Project Manager, Create Plan/TC … . For more information, please refer to Global Permissions.

 

 

Create Test Script

참고사항

Test Step Script can be created if the test case type is Auto.

To create test scripts:

  1. In TESTaide home, select the project that you want to remove test scripts from.

  2. Select the 'Test Cases' menu on the left sidebar.

  3. On the test case page, click the ‘Step Create’ button and on the ‘Test Script’ pop-up window, enter the following information.

    • Test Case : Test Case Name(Test Case Key). (Fixed)

    • Title * : The maximum length is 50 characters.

    • Test Script* : Python Script

    • Test Data : Required data for testing(variable)

    • Expected Result

  4. Click the ‘Save’ button at the bottom to complete the test script creation.

정보
  • The script must be written according to the Python syntax, and method names for each test case are not written.

  • If you write user_id='testaide' in the test data, you can use it as a variable in the test script.

  • When writing multiple test scripts in one test case, self.driver must be declared at the top of the script.

Test Script Example

No

Test

Step

Script

Test Data

Expected Result

1

self.driver.get(loginurl)

my_driver = self.driver

userIdEle = my_driver.find_element(By.NAME, 'logId')

passwordEle = my_driver.find_element(By.NAME, 'logPw')

submitEle = my_driver.find_element(By.CLASS_NAME, "btn-style")

userIdEle.send_keys(user_id)

passwordEle.send_keys(user_pw)

submitEle.click()

time.sleep(2)

loginurl = 'http://localhost:8080/loginForm.do'

user_id='testaide'

user_pw='welcome'

self.assertIn("project.", my_driver.current_url)

2

my_driver = self.driver

project_url = my_driver.current_url + "?key={}".format(projectkey)

my_driver.get(project_url)

time.sleep(3)

projectkey = 'AUTO1'

self.assertIn('project', my_driver.current_url)

...

Edit Test Script

To edit test scripts:

  1. In TESTaide home, select a project that you want to edit test scripts.

  2. Select the 'Test Cases' menu on the left sidebar.

  3. In the test case page, select a test case from the list you want to edit test scripts.

  4. In the test script panel below, click the ‘Edit’ icon besides the test step you want to edit from the test script list.

  5. In the ‘Test Script’ pop-up window, edit the information you want.

  6. Click the ‘Save’ button at the bottom to complete the test script editionsave changes.

📌 To change the order among test scripts, click the ‘Up’ or ‘Down’ icon besides the test script.

...