Here, we shall explain the basic method of creating a test using the MagicPod mobile app version.
1. Flow of basic test creation
For those who would like to view a video for a simple understanding of how to create a test, you can see it here.
If you would like to understand in detail in document form, keep on reading.
1-1. Creation
First, move to the test case page create in 1. Account Creation and Basic Setup, and click Edit test case.
Click the settings button on the top-right.
Here, you can set the environment, device, and app that you wish to launch.
When using a file you have locally, click Upload.
*For iOS, either have your app developer prepare the App file, or refer to the following article to generate and retrieve the App file based on the app source code.
Once the upload is complete, click Launch.
On doing so, your device screen will open in the MagicPod screen. This is known as the Cloud device in MagicPod.
Starting the Element selection mode.
When you do this, the input items and buttons on the page to be tested will be detected, and you will be able to select them. These are known as the UI elements in MagicPod.
Drag the UI elements you wish to use to the left. When you do this, a command(step) is added to operate the UI elements you have selected.
You can just keep adding them!
In case of commands for which values are required, such as Input in the step, enter the value.
Incidentally, you can right-click to delete, cut, copy, and insert steps.
You can also easily rearrange the steps by dragging them.
So click Run to run the test.
Test is running...
Success!
Even if you move to a new page, it will automatically detect elements, so you can just keep adding UI elements.
Run more. Place the cursor over Success and click Rerun.
So, let us run the whole test. When you unlock the Element selection mode,
white circles on steps will disappear.
Incidentally, the recommended number of steps per test case is less than 200.
When you click (Re) run in this state, everything will be run again from number 1.
1-2. Results
If it succeeds, click Details and check the test results.
The report will be created automatically.
Test run log
Appium log
Test run information
By configuring this further, you can check the Device log.
1-3. UI and UI elements, etc.
UI
In MagicPod, the screen information when creating the test is saved as a UI. Check this UI. Click UI List on the UI image tab.
By selecting the various UIs, you can add UI elements from the saved UI and create steps without launching the Cloud Browser. (1.Select an UI, 2.Start the Element selection mode, 3.Select an UI element)
When you drag them to the Shared UI area, they can be used as a separate test case.
You can change this by clicking on the name.
UI element
When you click on the UI element, you can rename it, etc. (While in Element selection mode, move the cursor and click the pencil mark. Or click while holding down the Shift key.)
Adding commands
When you click Add new row, you can add other commands. After adding UI elements, commands can be changed via ▼.
You can facilitate easier management by organizing and adding comment commands.
Now, we shall continue to Part 2.