This document provides how to manage test scripts in test cases.
...
In 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
Click the ‘Save’ button at the bottom to complete the test script creation.
정보 |
---|
|
Test Script Example
No | Test Step | 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:
...