A testing method and system for verifying app version

By comparing the test package versions in the application factory project with automated tools, the problem of version errors and omissions caused by manual verification is solved, the quality and efficiency of testing are improved, and automated verification of component versions is realized.

CN113918441BActive Publication Date: 2024-10-29FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010659584.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-09
Publication Date
2024-10-29
Estimated Expiration
2040-07-09

AI Technical Summary

Technical Problem

In the existing technology, the confirmation of the test package version in the application factory project mainly relies on manual verification, which can easily lead to quality problems due to missing data or inconsistent version numbers. Especially when new testers are unfamiliar with the test rules, it can easily lead to version errors or Omission.

Method used

Use automated tools to automatically compare component version data and generate test reports by setting standard version data and data analysis tables, reducing manual comparison operations and improving efficiency and quality.

Benefits of technology

Automatic comparison of component versions is achieved through automated tools, which improves test quality and efficiency, reduces manual errors, and facilitates data updates and function expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918441B_ABST
    Figure CN113918441B_ABST
Patent Text Reader

Abstract

The present invention provides a test method for verifying an app version, the test method comprising: step S1, setting standard version data, and selecting a corresponding application name + component branch name; step S2, dividing all components into types, and filling in corresponding query methods to form a data analysis table, the data analysis table including component type, component, and query method fields; step S3, finding a corresponding query method in the data analysis table according to the component in the standard version data, obtaining the version data of the component through the corresponding query method, comparing the queried version data with the standard version data, and outputting the comparison result; step S4, outputting a test report according to the current comparison result, the test report mainly outputs: test conclusion, specific difference data, and data of a file address link. The present invention improves the efficiency of testing and reduces labor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer communication technology, and in particular to a testing method and system for verifying an app version. Background Art

[0002] In application factory projects, testers are often required to pack test packages themselves. During the packaging process, whether the test components are called normally and whether the called component versions are correct becomes the only way for testers to confirm whether the test packages are correct. Currently, testers can only confirm manually, but during the testing process, it is inevitable that various reasons (unfamiliarity with the business, temporary secondment of personnel, incomplete testing, etc.) will lead to problems such as incorrect test package versions or missing versions. Early testers encountered similar situations during the testing process: the newly joined testers were unfamiliar with the test rules and did not confirm the test components and component versions of the test packages, resulting in the discovery of incorrect test packages during testing - such as incorrect display of the test content, and after consulting other testers, it was discovered that the cause was an error in calling the component version.

[0003] The disadvantages of the existing technology: the version data verification and confirmation of the early test package is mainly verified manually. During the testing process, many reasons (such as data omissions, etc.) are inevitable, resulting in quality problems such as version data omissions or inconsistent version numbers. Summary of the invention

[0004] In order to overcome the above problems, the purpose of the present invention is to provide a testing method for verifying app versions, which replaces repetitive and time-consuming manual comparison operations with automated tools, thereby improving the testing quality and efficiency.

[0005] The present invention is implemented by the following scheme: a test method for verifying the app version, the test method comprising the following steps:

[0006] Step S1, set standard version data and select the corresponding application name + component branch name;

[0007] Step S2: Classify all components into types and fill in corresponding query methods to form a data analysis table, which includes component type, component, and query method fields;

[0008] Step S3: find a corresponding query method in the data analysis table according to the component in the standard version data, obtain the version data of the component through the corresponding query method, compare the queried version data with the standard version data, and output the comparison result;

[0009] Step S4: Output a test report based on the current comparison result. The test report mainly outputs: test conclusion, specific difference data, and file address link data.

[0010] Furthermore, the setting of standard version data includes manual editing method and system default setting method. The manual editing method is to manually fill in the standard version data, and then select the corresponding application name + component branch name; the system default setting method is that the standard version data defaults to: the differential information under the currently selected application name - test branch name; then select the corresponding application name + test branch name.

[0011] Furthermore, the step S3 is further specifically as follows: step S31, transferring the standard version data into the data analysis table, searching for the component set B of the components in the standard version data in the data analysis table, and searching for the component type C corresponding to the component set B;

[0012] Step S32, after searching the corresponding query method D in the data analysis table according to the component type C;

[0013] Step S33, obtaining the component and component version data E under the corresponding file in the query mode D;

[0014] Step S34: compare the standard version data with the component version data E and output the comparison result.

[0015] Furthermore, based on the comparison results, a test report is integrated and displayed on the test platform; comparison results: the test passed, there is no difference, specific difference data: empty, file address link: empty; the test failed, there is a difference, specific difference data: fill in the specific standard version and actual version data + version, file address link: the address link of the build log and the link to the specific tree file.

[0016] The present invention also provides a test system for verifying an app version, the test system comprising a standard data source module, a data analysis module, a data reporting module, and a test execution module;

[0017] The standard data source module is used to set standard version data and select the corresponding application name + component branch name;

[0018] The data analysis module is used to classify all components into types and fill in corresponding query methods to form a data analysis table, which includes component type, component, and query method fields;

[0019] The data reporting module is used to find a corresponding query method in the data analysis table according to the component in the standard version data, obtain the version data of the component through the corresponding query method, compare the queried version data with the standard version data, and output the comparison result;

[0020] The test execution module is used to output a test report according to the current comparison result. The test report mainly outputs: test conclusion, specific difference data, and data of file address link.

[0021] Furthermore, the setting of standard version data includes manual editing method and system default setting method. The manual editing method is to manually fill in the standard version data, and then select the corresponding application name + component branch name; the system default setting method is that the standard version data defaults to: the differential information under the currently selected application name - test branch name; then select the corresponding application name + test branch name.

[0022] Furthermore, the data reporting module is further specifically configured to: transfer the standard version data into the data analysis table, search for the component set B in the data analysis table for the components in the standard version data, and search for the component type C corresponding to the component set B;

[0023] After searching the corresponding query method D in the data analysis table according to the component type C;

[0024] Obtain the component and component version data E under the corresponding file in the query method D;

[0025] Compare the standard version data with the component version data E and output the comparison result.

[0026] Furthermore, based on the comparison results, a test report is integrated and displayed on the test platform; comparison results: the test passed, there is no difference, specific difference data: empty, file address link: empty; the test failed, there is a difference, specific difference data: fill in the specific standard version and actual version data + version, file address link: the address link of the build log and the link to the specific tree file.

[0027] The beneficial effects of the present invention are as follows: the test personnel of the present invention compare the component data of the specified file in the component by setting the standard version data, output the test report, and improve the work efficiency; this testing method realizes the repeated time-consuming manual comparison operation through the automation tool, thereby improving the test quality and efficiency; in addition, compared with the previous testing tools, the present invention can directly add, delete and other operations for the component branches in the standard data source, the component types and components in the data analysis table, so as to facilitate the updating of data and the expansion of functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic flow chart of the method of the present invention.

[0029] Figure 2 It is a flow chart of the first embodiment of the present invention.

[0030] Figure 3It is a schematic diagram of test information provided when developing a test in an embodiment of the present invention.

[0031] Figure 4 It is a system principle block diagram of the present invention. DETAILED DESCRIPTION

[0032] The present invention will be further described below in conjunction with the accompanying drawings.

[0033] See also Figure 1 As shown, a test method for verifying an app version of the present invention comprises the following steps:

[0034] Step S1, set standard version data (i.e. component + version), and select the corresponding application name + component branch name;

[0035] Step S2: Classify all components into types and fill in corresponding query methods to form a data analysis table, which includes component type, component, and query method fields;

[0036] Step S3: find a corresponding query method in the data analysis table according to the component in the standard version data, obtain the version data of the component through the corresponding query method, compare the queried version data with the standard version data, and output the comparison result;

[0037] Step S4: Output a test report based on the current comparison result. The test report mainly outputs: test conclusion, specific difference data, and file address link data.

[0038] The present invention will be further described below in conjunction with a specific embodiment:

[0039] See also Figure 2 As shown, a test method for verifying the app version of the present invention is:

[0040] 1. Set the standard version data and select the corresponding application name + component branch name, that is, the setting of the standard version data includes manual editing and system default setting. The manual editing method is to manually fill in the standard version data (rule format: component + version number, such as apf-ci-android:0.0.58-gradlesname-1), and then select the corresponding application name + component branch name (applicable to any branch); the system default setting method is that the standard version data defaults to: the differential information under the currently selected application name-test branch name (the difference data between the previous version and the current version); then select the corresponding application name + test branch name (the default is the test branch).

[0041] The application name + component branch name is as follows in Table 1:

[0042] Table 1

[0043]

[0044]

[0045] 2. Classify all components and fill in the corresponding query methods to form a data analysis table, Table 2. Component types, components, and query methods can all be added, edited, deleted, and other operations (to facilitate later expansion of data).

[0046] Table 2

[0047]

[0048]

[0049] 3. Test status: 1) Test conclusion: whether the test passed or not, if not, the reason will be displayed - there is a version difference. 2) Specific difference data: specifically display the difference components - standard version and actual version data. 3) File address link: display the query link of the difference component (different query methods are displayed according to different component types).

[0050] 4. Transfer the standard version data to the data analysis table, find the component set B in the data analysis table for the components in the standard version data, and find the component type C corresponding to the component set B;

[0051] Step S32, after searching the corresponding query method D in the data analysis table according to the component type C;

[0052] Step S33, the component set B obtains the components and component version data E under the corresponding file in the query mode D (such as the Tree file or log file in Table 2) according to the query mode D;

[0053] Step S34: compare the standard version data with the component version data E and output the comparison result.

[0054] According to the comparison results, a test report is integrated (see Table 3) and displayed on the test platform; comparison results: the test passed, there is no difference, specific difference data: empty, file address link: empty; the test failed, there is a difference, specific difference data: fill in the specific standard version and actual version data + version, file address link: build log file address link and specific tree file link.

[0055] Table 3

[0056]

[0057]

[0058]

[0059] Test process (such as case: business component consistency detection):

[0060] Set Rule A: Manually write Rule A (such as apf-ci-android:0.0.37-zhp-consistent-06) and select the application + branch to be verified (such as script tool + test).

[0061] like Figure 3 As shown, Figure 3 Test information provided for development testing:

[0062] Take out component set B (such as apf-ci-android, which can be a single component or multiple components) from rule A, pass B into the data analysis table, and find the component type C corresponding to B.

[0063] After searching the corresponding query method D in the data analysis table according to the component type C, the output is to obtain the components and component version data E in the corresponding file according to the query method D for the component set B, and then compare the rule A with the data E and output the result.

[0064] According to the output results, they are integrated into a test report and displayed on the test platform.

[0065] Test results:

[0066] Result 1: Test conclusion: The test passed, no differences exist. Specific difference data: empty. File link: empty.

[0067] Result 2: Test conclusion: The test failed, there are differences. Specific difference data: fill in the specific data + version. File link:

[0068] The build log link is as follows:

[0069] http: / / jenkins.cc.app.service.sdp.nd / job / apfc_2yuni2_Apf_Adb_IQ / 4 / consoleFull

[0070] The link to the specific tree file is as follows:

[0071] http: / / jenkins.cc.app.service.sdp.nd / job / bizc_vqrjib_Apf_Adb_IQ / ws / app / assets / Tree.txt.

[0072] like Figure 4As shown, the present invention also provides a test system for verifying an app version, the test system comprising a standard data source module, a data analysis module, a data reporting module, and a test execution module;

[0073] The standard data source module is used to set standard version data and select the corresponding application name + component branch name;

[0074] The data analysis module is used to classify all components into types and fill in corresponding query methods to form a data analysis table, which includes component type, component, and query method fields;

[0075] The data reporting module is used to find a corresponding query method in the data analysis table according to the component in the standard version data, obtain the version data of the component through the corresponding query method, compare the queried version data with the standard version data, and output the comparison result;

[0076] The test execution module is used to output a test report according to the current comparison result. The test report mainly outputs: test conclusion, specific difference data, and data of file address link.

[0077] Among them, the setting of standard version data includes manual editing method and system default setting method. The manual editing method is to manually fill in the standard version data, and then select the corresponding application name + component branch name; the system default setting method is that the standard version data defaults to: the differential information under the currently selected application name-test branch name; then select the corresponding application name + test branch name.

[0078] Furthermore, the data reporting module is further specifically configured to: transfer the standard version data into the data analysis table, search for the component set B in the data analysis table for the components in the standard version data, and search for the component type C corresponding to the component set B;

[0079] After searching the corresponding query method D in the data analysis table according to the component type C;

[0080] The component set B obtains the component and component version data E under the corresponding file in the query method D according to the query method D;

[0081] Compare the standard version data with the component version data E and output the comparison result.

[0082] Furthermore, based on the comparison results, a test report is integrated and displayed on the test platform; comparison results: the test passed, there is no difference, specific difference data: empty, file address link: empty; the test failed, there is a difference, specific difference data: fill in the specific standard version and actual version data + version, file address link: the address link of the build log and the link to the specific tree file.

[0083] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A testing method for verifying an app version, characterized in that: The test method comprises the following steps: Step S1, set standard version data and select the corresponding application name + component branch name; Step S2: Classify all components into types and fill in corresponding query methods to form a data analysis table, which includes component type, component, and query method fields; Step S3: find a corresponding query method in the data analysis table according to the component in the standard version data, obtain the version data of the component through the corresponding query method, compare the queried version data with the standard version data, and output the comparison result; Step S4: Output a test report based on the current comparison result. The test report mainly outputs: test conclusion, specific difference data, and file address link data.

2. A testing method for verifying an app version according to claim 1, characterized in that: The setting of standard version data includes manual editing and system default setting. The manual editing method is to manually fill in the standard version data and then select the corresponding application name + component branch name; The default setting mode of the system is that the standard version data defaults to: the difference information under the currently selected application name - test branch name; Then select the corresponding application name + test branch name.

3. A testing method for verifying an app version according to claim 1, characterized in that: The step S3 is further specifically as follows: step S31, transferring the standard version data into the data analysis table, searching for the component set B in the data analysis table for the components in the standard version data, and searching for the component type C corresponding to the component set B; Step S32, after searching the corresponding query method D in the data analysis table according to the component type C; Step S33, obtaining the component and component version data E under the corresponding file in the query mode D; Step S34: compare the standard version data with the component version data E and output the comparison result.

4. A testing method for verifying an app version according to claim 1, characterized in that: According to the comparison results, a test report is integrated and displayed on the test platform; comparison results: the test passed, there is no difference, specific difference data: empty, file address link: empty; the test failed, there is a difference, specific difference data: fill in the specific standard version and actual version data + version, file address link: the address link of the build log and the link of the specific tree file.

5. A testing system for verifying an app version, characterized in that: The test system includes a standard data source module, a data analysis module, a data reporting module, and a test execution module; The standard data source module is used to set standard version data and select the corresponding application name + component branch name; The data analysis module is used to classify all components into types and fill in corresponding query methods to form a data analysis table, which includes component type, component, and query method fields; The data reporting module is used to find a corresponding query method in the data analysis table according to the component in the standard version data, obtain the version data of the component through the corresponding query method, compare the queried version data with the standard version data, and output the comparison result; The test execution module is used to output a test report according to the current comparison result. The test report mainly outputs: test conclusion, specific difference data, and data of file address link.

6. A test system for verifying an app version according to claim 5, characterized in that: The setting of standard version data includes manual editing and system default setting. The manual editing method is to manually fill in the standard version data and then select the corresponding application name + component branch name; The default setting mode of the system is that the standard version data defaults to: the difference information under the currently selected application name - test branch name; Then select the corresponding application name + test branch name.

7. A test system for verifying an app version according to claim 5, characterized in that: The data reporting module is further specifically configured to: transfer the standard version data into the data analysis table, search for a component set B in the data analysis table for components in the standard version data, and search for a component type C corresponding to the component set B; After searching the corresponding query method D in the data analysis table according to the component type C; Obtain the component and component version data E under the corresponding file in the query method D; Compare the standard version data with the component version data E and output the comparison result.

8. A testing system for verifying an app version according to claim 5, characterized in that: According to the comparison results, a test report is integrated and displayed on the test platform; comparison results: the test passed, there is no difference, specific difference data: empty, file address link: empty; the test failed, there is a difference, specific difference data: fill in the specific standard version and actual version data + version, file address link: the address link of the build log and the link of the specific tree file.

Citation Information

Patent Citations

  • Program testing method and apparatus

    CN106557419A

  • Software version testing method and device, terminal equipment and storage medium

    CN108268374A