No Description

TS_popup.groovy 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
  6. import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
  7. import com.kms.katalon.core.model.FailureHandling as FailureHandling
  8. import com.kms.katalon.core.testcase.TestCase as TestCase
  9. import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory
  10. import com.kms.katalon.core.testdata.TestData as TestData
  11. import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
  12. import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
  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.mobile.keyword.MobileBuiltInKeywords as Mobile
  17. import internal.GlobalVariable as GlobalVariable
  18. import com.kms.katalon.core.annotation.SetUp
  19. import com.kms.katalon.core.annotation.SetupTestCase
  20. import com.kms.katalon.core.annotation.TearDown
  21. import com.kms.katalon.core.annotation.TearDownTestCase
  22. /**
  23. * Some methods below are samples for using SetUp/TearDown in a test suite.
  24. */
  25. /**
  26. * Setup test suite environment.
  27. */
  28. @SetUp(skipped = true) // Please change skipped to be false to activate this method.
  29. def setUp() {
  30. // Put your code here.
  31. }
  32. /**
  33. * Clean test suites environment.
  34. */
  35. @TearDown(skipped = true) // Please change skipped to be false to activate this method.
  36. def tearDown() {
  37. // Put your code here.
  38. }
  39. /**
  40. * Run before each test case starts.
  41. */
  42. @SetupTestCase(skipped = true) // Please change skipped to be false to activate this method.
  43. def setupTestCase() {
  44. // Put your code here.
  45. }
  46. /**
  47. * Run after each test case ends.
  48. */
  49. @TearDownTestCase(skipped = true) // Please change skipped to be false to activate this method.
  50. def tearDownTestCase() {
  51. // Put your code here.
  52. }
  53. /**
  54. * References:
  55. * Groovy tutorial page: http://docs.groovy-lang.org/next/html/documentation/
  56. */