Mobile-Android : Unable to Run Test case on 6.1.3

Code:

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

Mobile.startApplication(‘D:\android-vendormate-1.apk’, true)

Mobile.waitForElementPresent(findTestObject(‘Object Repository/android.view.View14’), 40)

Mobile.setText(findTestObject(‘Object Repository/android.widget.EditText0 - auto@local.net’), ‘auto@local.net’, 20)

Mobile.setText(findTestObject(‘Object Repository/android.view.View19’), ‘Rest@123’, 10)

Mobile.tap(findTestObject(‘Object Repository/android.widget.Button0’), 10)

Mobile.closeApplication()

image

Hi @shitaltadas,

Could you also please share what you see when you click the “Details” button from the above dialog?

Thanks,

Chris

Nothing is visible in details section. Whole section is blank.

Hi @shitaltadas,

Can you try using a double \ for the location of the apk?

Mobile.startApplication('D:\\android-vendormate-1.apk', true)

Hope this helps,

Chris

Hi @shitaltadas,

Please update Katalon Studio to v6.1.4. We have fixed the issue. We are sorry for this inconvenient.

Thanks.

1 Like

Thank you so much for fixing this very quickly

Hello,

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.

I can provide more info if u need.

Thanks
Ini

Hi bạn,
Bạn ơi, mình mới bắt đầu học Katalon, áp dụng cho mobile.
Mình đang gặp vấn đề khi chạy file apk.
Nó báo lỗi như này:

Nhờ bên bạn support giúp nhé.

Can you share us the app file?

Hi @phonglan2990,

Please install appium v1.8.1.

Thanks.

1 Like

Thanks bạn, mình đã run được rồi.

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

Putting a link to ini’s solution they found and posted in another thread:

1 Like