Hello everyone, In this article, I will describe how the Mobile Test scenarios defined in Katalon Studio can be run in connection with Kobiton.
So let’s start…
First Kobito the start of the operation to be performed on the platform.
Step 1 : You can access the apk file of the simple notepad application that I use in the project .
First, the corresponding apk file must be uploaded to the Kobiton platform from the Apps menu.
STEP 2: Then select the devices selected from the devices in the KOBITON CLOUD DEVICES field via the Devices menu .
STEP 3 : As I explained in my previous articles how to create a mobile test scenario from Catalon Studio, I am assuming that the Mobile Test Scenario has been created in this section. You can find my related article here .
I’ve created a simple test case for the example apk. The code below belongs to the test scenario.
In this section, the part you should pay attention to is Mobile.startApplication (‘kobiton-store: 26723’, false) . After registering your mobile test scenario, you must update the part in Mobile.StartApplication field.
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 GlobalVariableMobile.startApplication(‘kobiton-store:26723’, false)
WebUI.delay(2)
Mobile.tap(findTestObject(‘test projesi/android.widget.ImageButton1’), 0)
WebUI.delay(2)
Mobile.setText (findTestObject (‘test project / android.widget.EditText0’), ‘TEST TRIAL NOT ICERIGI’, 0)
WebUI.delay(2)
Mobile.tap(findTestObject(‘test projesi/android.widget.ImageButton0’), 0)
WebUI.delay(2)
Mobile.closeApplication()
So where can I find this ’ kobiton-store: 26723 ’ information?
This expression is a kind of key in Kobiton, which is the apk file that we install and test on the Kobiton platform.
Follow the steps below to find out the application kobiton-store .
STEP 4 : After this stage, you must select Kobiton Device from Run option to run your application via Kobiton Device.
Then in the Device Name field in the Kobiton Favorite Device pop-up, you must reach the list of devices you added to your favorites on the Kobiton Platform.
The test run is run after any selected device. As can be seen from the screenshot below, it is possible to test with more than one mobile device.
Step 5: Test results reports can be accessed from the Sessions menu on the Kobiton Platform .
A separate report has been generated for each run as seen in the screenshot below.
STEP 6: When the report details of the relevant Test are opened, you can access the HTTP codes of all the test steps and the screenshots of each step supporting them, the video content including the whole testing process and all log records of the test.
I hope it has been a useful post.