8-year test summary, App automation test-Appium common problems + solutions (detailed arrangement)


foreword

Question 1:
android-sdk lacks the jar dependency package of apksigner.jar and prompts an error message Original error: Could not find 'apksigner.jar'

Executing the code in pycharm prompts the error message as follows:

An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.21.1.apk'. Original error: Could not find 'apksigner.jar' in ["E:\\android-sdk-windows\\platform-tools\\apksigner.jar"

Seeing that there is a lack of apksigner.jar jar dependency package in the error message, you need to put the apksigner.jar package under the platform-tools path decompressed by android-sdk;
as shown below:

C1

Question 2:
The error message that the adb version is too low

An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to forward ports to device 127.0.0.1:62001. No port chosen: . Perhaps your adb version is out of date. ChromeDriver 2.39 and newer require adb version 1.0.38 or newer. Run ‘adb version’ in your terminal of the host device to find your version of adb.

1. First go to the DOS window to view the adb version number
Command: adb version

2. There is no automatic upgrade command for adb. If you want to update the version of adb, you can find the version you want online and update it;

3. If you downloaded the adb compressed package of 1.0.40, after decompressing it, you can find the following files and copy them

C2

4. Find the platform-tools folder under the folder where adb is installed. I installed it on the E drive here.

C3

5. Copy the file you just copied to the \platform-tools folder, and replace the corresponding file in it.

C4

6. Open the DOS window again, and enter the command: adb version to view the adb version number

C5

Question 3:
The android sdk version is not compatible with the mobile phone version

Use python+appium to execute the automated test script and prompt an error.
Environment: python3.7 or above, appium1.21.0; Device: Huawei max8 real machine

Error message:

android.intent.category.LAUNCHER -f 0x10200000' exited with code 4294967295'; Stderr: 'Security exception: Permission Denial: starting Intent {
    
     act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.wondertek.paper/cn.thepaper.paper.ui.main.MainActivity } from null (pid=13494, uid=2000) not exported from uid 10149

The tested mobile phone version is android 9, and the version in the sdk does not support it, so this error has been reported. After downloading the latest sdk, it will be resolved.

The sdk version must be compatible with your mobile phone model
If the version of Appium's chromedriver.exe is higher, it may also require the support of a higher version of the sdk

android sdk Check the version of sdk
1. Find the installation package of android sdk, double-click SDK Manager.exe

C6

2. After the window pops up, click Tools–About; you can see the SDK version number; check the mobile phone version corresponding to the SDK version number.

C7

The following is the most complete software test engineer learning knowledge architecture system diagram in 2023 that I compiled

1. From entry to mastery of Python programming

Please add a picture description

2. Interface automation project actual combat

Please add a picture description

3. Actual Combat of Web Automation Project

Please add a picture description

4. Actual Combat of App Automation Project

Please add a picture description

5. Resume of first-tier manufacturers

Please add a picture description

6. Test and develop DevOps system

Please add a picture description

7. Commonly used automated testing tools

Please add a picture description

Eight, JMeter performance test

Please add a picture description

9. Summary (little surprise at the end)

As long as you have a dream in your heart and work hard unremittingly, you can achieve some brilliance. Believe in your own ability, go forward bravely, and every effort is one step closer to success. No matter how many difficulties you encounter, you must strengthen your beliefs and never give up, and you will finally usher in your own glorious moment!

Only by constantly surpassing our own efforts can we shine brightly on the stage of life. No matter how difficult it is, as long as you persevere, success will surely belong to those who dare to struggle!

Only by striving can we pursue the infinite possibilities in our hearts, challenge ourselves, surpass our limits, and achieve brilliance. Unremitting efforts will surely pave the way to success, let us embrace our dreams and move forward bravely!

Guess you like

Origin blog.csdn.net/x2waiwai/article/details/131810300