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 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 internal.GlobalVariable as GlobalVariable
I am unable to capture objects on Katalon 6.1.4 though i have the right version of Appium(1.8.1). I still get java.lang.NullPointerException error. Please suggest a solution. I am literally stuck with it. I am running the Appium server just in case in the background. I am using Mac- FYI.
Nhưng mình thấy có vấn đề như này:
Mình thực hiện record và tạo test case trên Device1, chạy Pass rồi, sau đó mình dùng Device2 thực hiện cái test case đó thì nó lại Fail.
Mình có thực hiện record lại đối với Device2 thì nhận thấy cái Object nó detect một số button ở Device2 khác với Device1
Ví dụ: Khi click button Share thì
- Device 1 là android.widget.Button0 - SHARE
- Device 2 là android.widget.TextView2 - SHARE
Vì sao nó lại khác nhau như vậy nhỉ? Mà nếu device khác nhau mà detect Object khác nhau thì lại phải tạo test case riêng cho từng loại device sao?
Thông tin Device của mình:
Device1 = Samsung Galaxy S6, Android 7.0
Device2 = Nexus 6 , Android 7.1.1