Android 13 GTS GtsPermissionControllerHostTestCases Test Failed

Android13 tablet project test GtsPermissionControllerHostTestCases Failed, the failure log is as follows: java.lang.AssertionError: on-device tests failed: com.android.gts.permissioncontroller.PermissionControllerTest29#testGranted: java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean androidx.test.uiautomator.UiObject2.isChecked()’ on a null object reference at com.android.gts.permissioncontroller.BasePermissionsTest.setPermissionGrantState(BasePermissionsTest.java:527) at com.android.gts.permissioncontroller.BasePermissionsTest.setPermissionGrantState(BasePermissionsTest.java:502) at com.android.gts.permissioncontroller.BasePermissionsTest.grantPermissions(BasePermissionsTest.java:393) at com.android.gts.permissioncontroller.BasePermissionsTest.grantPermission(BasePermissionsTest.java:389) at com.android.gts.permissioncontroller.PermissionControllerTest29.testGranted(PermissionControllerTest29.java:103) at android.permissioncontroller.gts.Utils.runDeviceTests(Utils.java:130) at android.permissioncontroller.gts.Utils.runDeviceTests(Utils.java:80) at android.permissioncontroller.gts.Utils.runDeviceTestsAsCurrentUser(Utils.java:44) at android.permissioncontroller.gts.PermissionControllerHostTest.testGrantAppPermissionFragment(PermissionControllerHostTest.java:229) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) […]

GTS GtsUnofficialApisUsageTestCases Failed

GTS test GtsUnofficialApisUsageTestCases fails as follows: junit.framework.AssertionFailedError: There are 102 violation(s) com.google.android.gm/Landroid/window/BackEvent;- >getProgress()F/BLOCKED/LINKING com.google.android.gm / Landroid/window/BackEvent;- >getSwipeEdge()I / BLOCKED / LINKING com.google.android.gm / Landroid/window/BackEvent;- >getTouchX()F / BLOCKED / LINKING com.google.android.gm / Landroid/window/BackEvent;- >getTouchY()F / BLOCKED / LINKING com.google.android.dialer/Landroid/window/BackEvent;- >getProgress()F/BLOCKED/LINKING com.google.android.dialer / Landroid/window/BackEvent;- >getSwipeEdge()I / BLOCKED / LINKING com.google.android.dialer / Landroid/window/BackEvent;- >getTouchY()F / BLOCKED / LINKING […]

Use and secondary development of xmind2testcase

xmind2testcase installation, simple secondary development and usage instructions: Add xmind file backup Refactor to generate CSV file Preview page data display reconstruction 1. Installation 1.xmind2testcase installation pip install xmind2testcase 2. Start the service Enter the default location: C:\Users\dell\AppData\Roaming\Python\Python38\Scripts, open the cmd command window, execute the command xmind2testcase.exe webtool 5000, enter http://local ip:5000 in the browser […]

Combining AI and software testing-using LLM to generate TestCase from natural language

In my spare time, I imagined an idea that could improve the efficiency of the left side of the testing process. Combined with artificial intelligence, natural language can be automatically converted into a series of general functional use cases, interface use cases, code unit test cases, etc. When I encountered these 2 With the explosion […]

GenerateWord Enterprise Architect scenario and TestCase to docment

using EA; using EA_AutoModeler_64.Activity_Analysis_Class; using Microsoft.Office.Interop.Word; using Org.BouncyCastle.Utilities.Collections; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; using System.Windows; using System.Windows.Controls; using static System.Net.Mime.MediaTypeNames; namespace EA_AutoModeler_64 {<!– –> class ActivityAnalysis {<!– –> public static void GenerateWord(EA.Repository repository, EA.Diagram diagram) {<!– –> #region export word WordDocument wordDocument = new WordDocument(); wordDocument.repository […]

XMind2TestCase converts mind maps into test cases

Background Quoting the official description In the software testing process, the most important and core thing is the design of test cases. It is also one of the tasks that the testing team and the testing team spend the most time on daily. However, the traditional test case design process has many pain points: Although […]

Test development – add testcase test case logic for backend development (8)

Add test case backend logic 1. Add the testcase_entity.py entity class of the do layer from server import db class TestcaseEntity(db.Model): # table name __tablename__ = “testcase” # Use case ID, primary key id = db.Column(db.Integer, primary_key=True) # Use case title, unique title = db.Column(db.String(64), nullable=True, unique=True) # use case level, not empty level = […]

[Python automation practice – introduce trace] Introduce trace into the project to track the log + log push es during the execution of each testcase

Background Recently, the company has a lot of abnormal cases in the process of running automation cases. Some of them are difficult to locate problems based on existing logs (logs are too many and messy, irrelevant). Local debugging is often required to find problems, which greatly affects the efficiency of writing automation and Pass rate […]

CtsAppOpsTestCases openCameraWithDefaultAttribution problem analysis

openCameraWithDefaultAttribution Problems background analyze solve Problems Background Record a Cts problem analyzed today android.app.appops.cts.AppOpsLoggingTest#openCameraWithAttribute android.app.appops.cts.AppOpsLoggingTest#openCameraWithDefaultAttribute 05-05 14:30:10.923 10317 6286 6306 E TestRunner: —– begin exception —– 05-05 14:30:10.923 10317 6286 6306 E TestRunner: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 05-05 14:30:10.923 10317 6286 6306 E TestRunner: at android.app.appops.cts.AppOpsLoggingTest.openCamera(AppOpsLoggingTest.kt:794) 05-05 14:30:10.923 10317 6286 6306 E TestRunner: at android.app.appops.cts.AppOpsLoggingTest.openCameraWithDefaultAttribution(AppOpsLoggingTest.kt:853) 05-05 […]