Script1722923337204.groovy 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.openBrowser('')
  20. WebUI.delay(2)
  21. WebUI.navigateToUrl('http://10.112.6.205/login')
  22. WebUI.delay(2)
  23. WebUI.maximizeWindow()
  24. WebUI.delay(2)
  25. WebUI.setText(findTestObject('Object Repository/Page_/input-cc8-295-89d'), 'BPTPR')
  26. WebUI.delay(2)
  27. WebUI.setText(findTestObject('Object Repository/Page_/input-cc8-31f-df9'), 'BPTPRUSER1')
  28. WebUI.delay(2)
  29. WebUI.setEncryptedText(findTestObject('Object Repository/Page_/input_password-cc8-e5f-c3d'), 'MpEqHZHV+RM=')
  30. WebUI.delay(2)
  31. WebUI.setEncryptedText(findTestObject('Object Repository/Page_/input_password-cc8-5d9-63b'), 'SFTQUhjBfIY=')
  32. WebUI.delay(2)
  33. WebUI.click(findTestObject('Object Repository/Page_/buttonbutton-cc8-a97-fa6'))
  34. WebUI.delay(2)
  35. WebUI.click(findTestObject('Object Repository/Page_/div-12d-9dd-c7a'))
  36. WebUI.delay(2)
  37. WebUI.click(findTestObject('Object Repository/Page_/vaadin-item_Selling Agent'))
  38. WebUI.delay(2)
  39. WebUI.click(findTestObject('Object Repository/Page_/buttonbutton-7c2-1bc-ee8'))
  40. WebUI.delay(2)
  41. WebUI.verifyElementText(findTestObject('Object Repository/Page_/span_Home-ge_-415-78d'), 'Home')
  42. WebUI.delay(2)