Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 3

import static com.kms.katalon.core.checkpoint.CheckpointFactory.

findCheckpoint

import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase

import static com.kms.katalon.core.testdata.TestDataFactory.findTestData

import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject

import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint

import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW

import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile

import com.kms.katalon.core.model.FailureHandling as FailureHandling

import com.kms.katalon.core.testcase.TestCase as TestCase

import com.kms.katalon.core.testdata.TestData as TestData

import com.kms.katalon.core.testobject.TestObject as TestObject

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows

import internal.GlobalVariable as GlobalVariable

WebUI.openBrowser("http://training.openspan.com/login")

CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object Repository/Page_Sign
In Pega Studio Training Web Application/LabelSing in'))

CustomKeywords.'entidad.OpcionComun.escribirTexto'(findTestObject('Object Repository/Page_Sign In
Pega Studio Training Web Application/username'), findTestData("DataFile").getValue(1, 1))

CustomKeywords.'entidad.OpcionComun.escribirTexto'(findTestObject('Object Repository/Page_Sign In
Pega Studio Training Web Application/pass'), findTestData("DataFile").getValue(2, 1))

CustomKeywords.'entidad.OpcionComun.darClick'(findTestObject('Object Repository/Page_Sign In Pega


Studio Training Web Application/BtnNext'))
CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object
Repository/Page_Home Pega Studio Training Web Application/Label home'))

CustomKeywords.'entidad.OpcionComun.darClick'(findTestObject('Object Repository/Page_Home Pega


Studio Training Web Application/BtnProduct'))

CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object
Repository/Page_Products Pega Studio Training Web Application/label product'))

CustomKeywords.'entidad.OpcionComun.darClick'(findTestObject('Object Repository/Page_Products
Pega Studio Training Web Application/btnBeverages'))

CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object
Repository/Page_Beverages Pega Studio Training Web Application/label Beverage'))

CustomKeywords.'entidad.OpcionComun.darClick'(findTestObject('Object Repository/Page_Beverages
Pega Studio Training Web Application/Ipoh Coffee'))

CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object
Repository/Page_Product Detail Pega Studio Training Web Application/h1_Ipoh Coffee'))

CustomKeywords.'entidad.OpcionComun.darClick'(findTestObject('Object Repository/Page_Product
Detail Pega Studio Training Web Application/input_Qty._Order'))

CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object
Repository/Page_Order Products Pega Studio Training Web Application/labelOrderProdut'))

CustomKeywords.'entidad.OpcionComun.darClick'(findTestObject('Object Repository/Page_Order
Products Pega Studio Training Web Application/btnEditcart'))

CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object
Repository/Page_Order Pega Studio Training Web Application/h3_Step 1 Place Your Order'))

CustomKeywords.'entidad.OpcionComun.darClick'(findTestObject('Object Repository/Page_Order Pega


Studio Training Web Application/input_23.00_next'))
CustomKeywords.'entidad.OpcionComun.objectoPresente'(findTestObject('Object
Repository/Page_Order Pega Studio Training Web Application/label Tell Us Who You Are'))

CustomKeywords.'entidad.OpcionComun.escribirTexto'(findTestObject('Object Repository/Page_Order
Pega Studio Training Web Application/input_Billing Address_bfirst_name'),
findTestData("DataFile").getValue(6, 1))

CustomKeywords.'entidad.OpcionComun.escribirTexto'(findTestObject('Object Repository/Page_Order
Pega Studio Training Web Application/input_Billing Address_blast_name'),
findTestData("DataFile").getValue(6, 2))

CustomKeywords.'entidad.OpcionComun.escribirTexto'(findTestObject('Object Repository/Page_Order
Pega Studio Training Web Application/input_Billing Address_bcompany_name'),
findTestData("DataFile").getValue(6, 3))

CustomKeywords.'entidad.OpcionComun.escribirTexto'(findTestObject('Object Repository/Page_Order
Pega Studio Training Web Application/input_Billing Address_bstreet_address'),
findTestData("DataFile").getValue(6, 4))

You might also like