Script1722909825839.groovy 1.5 KB

123456789101112131415161718192021222324252627282930
  1. import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
  2. import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
  3. import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
  4. import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
  5. import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
  6. import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
  7. import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
  8. import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
  9. import com.kms.katalon.core.model.FailureHandling as FailureHandling
  10. import com.kms.katalon.core.testcase.TestCase as TestCase
  11. import com.kms.katalon.core.testdata.TestData as TestData
  12. import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
  13. import com.kms.katalon.core.testobject.TestObject as TestObject
  14. import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
  15. import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
  16. import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
  17. import internal.GlobalVariable as GlobalVariable
  18. import org.openqa.selenium.Keys as Keys
  19. WebUI.callTestCase(findTestCase('login/SRP-030-CB'), [:], FailureHandling.STOP_ON_FAILURE)
  20. WebUI.click(findTestObject('Object Repository/Page_/buttonbutton-7c2-1bc-ee8'))
  21. WebUI.delay(2)
  22. WebUI.verifyElementText(findTestObject('Object Repository/Page_/span_Welcome to-ge_-1c1-e50'), 'Welcome to')
  23. WebUI.delay(2)