CN107729227B - Application program test range determining method, system, server and storage medium - Google Patents

Application program test range determining method, system, server and storage medium Download PDF

Info

Publication number
CN107729227B
CN107729227B CN201710618076.4A CN201710618076A CN107729227B CN 107729227 B CN107729227 B CN 107729227B CN 201710618076 A CN201710618076 A CN 201710618076A CN 107729227 B CN107729227 B CN 107729227B
Authority
CN
China
Prior art keywords
test
file
changed
storage path
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710618076.4A
Other languages
Chinese (zh)
Other versions
CN107729227A (en
Inventor
王庆丰
柯星
张远平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201710618076.4A priority Critical patent/CN107729227B/en
Publication of CN107729227A publication Critical patent/CN107729227A/en
Priority to PCT/CN2018/078321 priority patent/WO2019019647A1/en
Application granted granted Critical
Publication of CN107729227B publication Critical patent/CN107729227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version

Abstract

The invention relates to a method, a system, a server and a storage medium for determining an application program test range. The method comprises the following steps: acquiring a first mapping file corresponding to the current version of the application program to be tested; the first mapping file comprises a function point, a storage path and a corresponding test case of a current version; acquiring a second mapping file corresponding to a version of the application program to be tested; the second mapping file comprises a function point of a previous version, a storage path and a corresponding test case; comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths; identifying the functional point to be tested by using the changed functional point and/or the changed storage path; and acquiring the test case corresponding to the functional point to be tested by using the first mapping file, and recording the test case as the test range corresponding to the current version. By the method, the accurate application program test range can be determined.

Description

Application program test range determining method, system, server and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, a system, a server and a storage medium for determining an application program test range.
Background
With the development of the mobile internet, the iteration speed of the Application program (APP for short) version is faster and faster. In the regression test of the application program, in order to increase the test speed, it may be considered to reduce the test range and test only the modified function or the newly added function. In the conventional manner, there are mainly two ways to determine the test range:
1. a relatively coarse test range can be determined according to the function requirements of the APP and the personal experience of a tester;
2. the test scope may also be determined by the developer providing code modification scope based on his personal experience.
In the above mode 1, since the function requirement of the APP can only determine the test range corresponding to the newly added function, but cannot determine the test range corresponding to the modified function, the test range is easily too large or too small. In the above mode 2, since there are different differences in the individual experiences of many developers, it is difficult to provide an accurate test range corresponding to a code modification, and an excessively small or large test range is often provided. If the test range is too small, test missing is easily caused, and if the test range is too large, unnecessary tests are easily caused. Therefore, how to determine the precise test range becomes a technical problem to be solved at present.
Disclosure of Invention
In view of the above, it is necessary to provide an application test range determining method, system, server and storage medium capable of determining an accurate test range in order to solve the above technical problems.
An application test scope determination method, the method comprising:
acquiring a first mapping file corresponding to the current version of the application program to be tested; the first mapping file comprises a function point, a storage path and a corresponding test case of a current version;
acquiring a second mapping file corresponding to a version of the application program to be tested; the second mapping file comprises a function point of a previous version, a storage path and a corresponding test case;
comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths;
identifying the functional point to be tested by using the changed functional point and/or the changed storage path;
and acquiring the test case corresponding to the functional point to be tested by using the first mapping file, and recording the test case as the test range corresponding to the current version.
In one embodiment, the step of identifying the functional point to be tested by using the changed functional point and/or the changed storage path includes:
acquiring a corresponding code file by using the changed functional point and/or the changed storage path; the code files comprise a current version of code files and a previous version of code files;
and comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as the function point to be tested.
In one embodiment, the step of obtaining the corresponding code file by using the changed function point and/or the changed storage path includes:
if the function point is not changed, the corresponding storage path is changed, and a corresponding code file is obtained according to the changed storage path;
if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point;
and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point.
In one embodiment, the method further comprises:
receiving a query request of a current version test range sent by a first test terminal through a first application program;
obtaining test cases corresponding to a plurality of functional points to be tested of the current version according to the query request;
and numbering the left and right values of the plurality of test cases, and returning the numbered test cases to the first test terminal for displaying.
In one embodiment, the method further comprises:
receiving a login request sent by a first test terminal through a second application program;
returning a corresponding uploading page to the first test terminal according to the login request; enabling the first test terminal to display the uploading page; the first test terminal also tests the application program to be tested according to the test range through the first application program to generate a test result file, and the test result file comprises a first identifier;
receiving description information corresponding to a test result file uploaded by a second test terminal, and generating a two-dimensional code by using the description information, wherein the two-dimensional code carries a second identifier;
returning the uploading page carrying the two-dimensional code to a second test terminal, so that the first test terminal scans the two-dimensional code, identifies a second identifier in the two-dimensional code, and associates the second identifier with a first identifier of a test result file;
receiving the associated test result file uploaded by the second test terminal;
and acquiring a corresponding storage path according to the second identifier, and storing the received test result file according to the storage path.
An application test scoping system, the system comprising:
the first test terminal is used for sending a query request of a test range of a current version;
the server is used for acquiring a first mapping file corresponding to the current version according to the query request; the first mapping file comprises a function point, a storage path and a corresponding test case of a current version; acquiring a second mapping file corresponding to a version of the application program; the second mapping file comprises a function point of a previous version, a storage path and a corresponding test case; comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths; identifying the functional point to be tested by using the changed functional point and/or the changed storage path; acquiring a test case corresponding to the function point to be tested by using the first mapping file, and recording the test case as a test range corresponding to the current version;
and the first test terminal is also used for receiving the test range corresponding to the current version returned by the server.
In one embodiment, the server is further configured to obtain a corresponding code file by using the changed function point and/or the changed storage path; the code files comprise a current version of code files and a previous version of code files; and comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as the function point to be tested.
In one embodiment, the server is further configured to, if the function point is not changed, change the corresponding storage path, and obtain the corresponding code file according to the changed storage path; if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point; and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point. .
A server comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the method steps provided in the above embodiments.
One or more computer-readable non-transitory storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the method steps provided in the embodiments described above.
According to the method, the system, the server and the storage medium for determining the test range of the application program, the first mapping file corresponding to the current version of the application program and the second mapping file corresponding to the previous version of the application program are obtained. And comparing the first mapping file with the second mapping file, thereby obtaining the changed function point and/or the changed storage path. And then the changed functional points and/or the changed storage paths can be used for accurately identifying the functional points to be detected. And acquiring corresponding test cases through the function points to be tested, and recording the test cases as the test range corresponding to the current version. Therefore, the testing range can be accurately determined in the regression testing of the application program, and the testing efficiency can be effectively improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary application environment for a method for scoping the testing of an application program in one embodiment;
FIG. 2 is a flow diagram that illustrates a methodology for scoping testing of an application in one embodiment;
FIG. 3 is a block diagram of an application test scoping system in one embodiment;
fig. 4 is a schematic structural diagram of a server in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.
In one embodiment, as shown in fig. 1, an application environment diagram of an application test range determining method, system, server and storage medium is provided. The application environment includes a server 102 and a first test terminal 104. Wherein the server 102 and the first test terminal 104 may communicate over a network. The first test terminal 104 may be a smart phone, a tablet computer, or the like. Server 102 may determine a test scope for the current version of the application. Specifically, the server 102 obtains a first mapping file corresponding to the current version of the application program to be tested, and the server 102 obtains a second mapping file corresponding to the previous version of the application program to be tested. The server 102 compares the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths and corresponding test cases, identifies the function points to be tested by using the changed function points and/or the changed storage paths, acquires the test cases corresponding to the function points to be tested by using the first mapping file, and records the test cases as the test range corresponding to the current version.
The first test terminal 104 sends a query request of the current version test range to the server 102 through the first application program. The server 102 obtains the test cases corresponding to the multiple functional points to be tested of the current version according to the query request, and returns the multiple test cases to the first test terminal 104. The first test terminal 104 receives the test case, and performs regression testing on the application program of the current version by using the test case.
In an embodiment, as shown in fig. 2, a method for determining an application test range is provided, which is described by taking an example that the method is applied to a server, and specifically includes:
step 202, acquiring a first mapping file corresponding to the current version of the application program to be tested; the first mapping file comprises a function point of the current version, a storage path and a corresponding test case.
Step 204, acquiring a second mapping file corresponding to a version of the application program to be tested; the second mapping file comprises a function point of the previous version, a storage path and a corresponding test case.
Step 206, comparing the first mapping file with the second mapping file to obtain the changed function point and/or the changed storage path.
And step 208, identifying the functional point to be tested by using the changed functional point and/or the changed storage path.
And 210, acquiring a test case corresponding to the function point to be tested by using the first mapping file, and recording the test case as a test range corresponding to the current version.
An application may be a computer program that can implement one or more functions. Developers update versions of applications as they add new functions, delete unnecessary functions, and improve the functions of the applications. In the process of updating the application program version, a developer obtains the application program of the current version by modifying the code of the application program of the previous version.
Before testing the application program of the current version, the corresponding testing range can be determined through the server, so that testing personnel can test the application program of the current version conveniently according to the testing range, and the testing efficiency of regression testing can be effectively improved.
The application program comprises a plurality of function points, each function point having a corresponding one or more code files. The corresponding function points, such as login, query, and modification of settings, etc., can be realized by executing the code file. The code file may be stored in the server according to a corresponding storage path. The function point of the application program is tested through a plurality of test cases. And different functional points adopt different test cases for testing.
And the tester generates a mapping file according to the function points of the application program, the storage path corresponding to the code file and the test case corresponding to the function points. Different versions of an application may have different mapping files.
The server acquires a first mapping file corresponding to the current version of the application program, wherein the first mapping file comprises function points of the current version, storage paths corresponding to the code files and test cases corresponding to the function points. The first mapping file also comprises a mapping relation among the function points of the current version, the storage paths corresponding to the code files and the test cases corresponding to the function points.
The server can also obtain a second mapping file corresponding to the previous version of the application program, wherein the second mapping file comprises the function point of the previous version, the storage path corresponding to the code file and the test case corresponding to the function point. The second mapping file also comprises a mapping relation among the function points of the previous version, the storage paths corresponding to the code files and the test cases corresponding to the function points.
The current version of the application program can comprise newly added function points which have new functions, storage paths corresponding to the code files and test cases corresponding to the function points. The newly added function points, the storage paths corresponding to the code files and the test cases corresponding to the newly added function points can be correspondingly recorded in the first mapping file.
The newly added function point in the first mapping file may be referred to as a function point that has changed from the function point in the second mapping file, or may be referred to as a changed function point for short. The storage path corresponding to the newly added function point may be referred to as a storage path that has changed from the storage path of the second mapping file, or may be referred to as a changed storage path for short.
The current version of the application program can also repair one or more function points in the last version. The repaired function point in the current version may also be referred to as a changed function point. The storage path corresponding to the code file of the repaired function point may also be changed. Similarly, the storage path corresponding to the code file of the repaired function point in the first mapping file may also be changed. The storage path repaired in the first mapped file may be referred to as a storage path that changes from the storage path of the second mapped file, or may be simply referred to as a changed storage path.
And the server compares the function points and the storage paths in the first mapping file with the corresponding function points and storage paths in the second mapping file respectively to obtain changed function points and/or changed storage paths, and identifies the function points to be detected by using the changed function points and/or the changed storage paths.
The server may obtain the corresponding code file by using the changed function point and/or the changed storage path. The code file comprises a current version code file and a previous version code file, the server can compare the current version code file with the previous version code file, and if the current version code file and the previous version code file are different, the function point corresponding to the current version code file is recorded as a function point to be tested.
The server can obtain the test case corresponding to the functional point to be tested through the first mapping file, and the test case can have priority. The server acquires the priority of the test cases, records the test case with the highest priority as a priority test case, and records the priority test case as a test range corresponding to the functional point to be tested.
In this embodiment, a first mapping file corresponding to a current version of an application program and a second mapping file corresponding to a previous version are obtained. And comparing the first mapping file with the second mapping file, thereby obtaining the changed function point and/or the changed storage path. And then the changed functional points and/or the changed storage paths can be used for accurately identifying the functional points to be detected. And acquiring corresponding test cases through the function points to be tested, and recording the test cases as the test range corresponding to the current version. Therefore, the testing range can be accurately determined in the regression testing of the application program, and the testing efficiency can be effectively improved.
In one embodiment, the step of identifying the functional point to be tested by using the changed functional point and/or the changed storage path includes: acquiring a corresponding code file by using the changed functional points and/or the changed storage paths; the code files comprise a current version of code files and a previous version of code files; and comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as the function point to be tested.
The changed function points comprise changed function points in the current version corresponding to the newly added function points in the first mapping file; the changed function points also comprise the function points repaired in the current version, and the function points repaired in the current version correspond to the function points before repair in the previous version.
The changed storage paths comprise storage paths corresponding to the newly added function points in the first mapping file and storage paths repaired in the first mapping file, and the storage paths repaired in the first mapping file correspond to the storage paths before repair in the second mapping file.
The server can obtain corresponding code files by using the changed function points and/or the changed storage paths, wherein the code files comprise the code files corresponding to the newly added function points in the current version, the code files which are possibly changed in the current version and the code files of the corresponding previous version.
In one embodiment, the step of obtaining the corresponding code file by using the changed function point and/or the changed storage path includes: if the function point is not changed, the corresponding storage path is changed, and a corresponding code file is obtained according to the changed storage path; if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point; and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point.
And the server compares the functional points in the first mapping file with the functional points in the second mapping file and identifies whether the changed functional points are included in the first mapping file. And the server compares the storage path corresponding to the functional point in the first mapping file with the storage path corresponding to the functional point in the second mapping file, and identifies whether the first mapping file comprises the changed storage path.
And if the function point in the first mapping file is not changed and the storage path corresponding to the function point is not changed, indicating that the code file under the storage path is not changed. That is, the function point is unchanged in the current version compared to the previous version. For functional points that do not change, testing may not be necessary in regression testing.
And if the newly added function points exist in the first mapping file, recording the newly added function points as the function points to be tested. Because the newly added function point has a new function, the server needs to use a new code file to realize the new function and use a new test case to test the new function. Therefore, the server records the newly added function point as the function point to be tested.
If the function point of the first mapping file is not changed, but the storage path corresponding to the function point is changed, which indicates that the code file under the storage path may be changed, the server acquires the code file under the storage path by using the first mapping file. Similarly, the server acquires the code file under the storage path before repair by using the second mapping file. And the server compares the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, the function point corresponding to the code file of the current version is recorded as the function point to be tested.
If the function point in the first mapping file is changed and the storage path corresponding to the function point is not changed, indicating that the code file under the storage path may be changed, the server acquires the code file under the storage path by using the first mapping file. Similarly, the server acquires the code file under the storage path before repair by using the second mapping file. And the server compares the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, the function point corresponding to the code file of the current version is recorded as the function point to be tested.
If the function point in the first mapping file changes and the storage path corresponding to the function point changes, which indicates that the code file under the storage path may change, the server acquires the code file under the storage path by using the first mapping file. Similarly, the server acquires the code file under the storage path before repair by using the second mapping file. And the server compares the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, the function point corresponding to the code file of the current version is recorded as the function point to be tested.
And the server compares the code file which is possibly changed in the current version with the corresponding code file of the previous version, and identifies the function point to be tested by using the changed code file. Specifically, the server compares the code file that may change in the current version with the corresponding code file in the previous version using the message digest. The server computes a first MD5 value for a code file that may have changed in the current version and computes a second MD5 value for the corresponding code file in the previous version. And the server compares the first MD5 value with the second MD5 value, and if the first MD5 value and the second MD5 value are different, which indicates that the code file which is possibly changed in the current version is different from the corresponding code file in the previous version, the function point corresponding to the code file which is possibly changed in the current version is recorded as the function point to be tested. The server compares the first MD5 value of the code file which is possibly changed in the current version with the second MD5 value of the corresponding code file in the previous version, so that the required function point to be tested can be accurately obtained.
In this embodiment, the changed function points and/or the changed storage paths are used to obtain corresponding code files, and the current version code file in the code files is compared with the previous version code file, so as to accurately identify the changed code files, which is beneficial to obtaining the function points to be tested by using the changed code files, and improve the accuracy of the test range.
In one embodiment, the test case includes a priority, a test type, and a test phase, and the step of determining the test range using the test case includes: obtaining a plurality of priority test cases according to the corresponding priorities of the test cases; and if the number of the priority test cases exceeds the threshold value, determining a test range according to the test stage and/or the test type corresponding to the priority test cases.
The application includes a plurality of application versions. And if the application program to be tested is the first version, the server tests the corresponding function point by using all the test cases. If the application program to be tested is not the first version, the server compares the first mapping file corresponding to the current version application program with the second mapping file corresponding to the previous version application program to obtain the function points to be tested in the function points of the application program to be tested, including obtaining the test cases corresponding to the function points to be tested, and then testing the corresponding function points to be tested by using the test cases.
And the server further determines the test range of the function point to be tested according to the test cases of the function point to be tested. Specifically, the server obtains a test case corresponding to the functional point to be tested by using the first mapping file, where the test case includes a priority, a test type, a test phase, and the like. The test types include interface test, basic function test, exception test and the like. The test stage comprises a performance test, a safety test, a stability test and the like, and the test type of the test case corresponds to the test stage of the test case. The server takes the test case with higher priority as a priority test case, and the function influence index of the priority test case on the function point is higher. Specifically, the server obtains the test case with the highest priority and records the test case as a priority test case. If the number of the prior test cases exceeds the threshold value, which indicates that the priority levels of the multiple test cases corresponding to the function point to be tested are the same as high, the server further screens the test cases according to the test stages and test types corresponding to the prior test cases, and finally obtains the test range of the test cases, namely the application programs.
In this embodiment, the priority of the test case corresponding to the function point to be tested is obtained, and the priority of the test case is used to obtain the priority test case, so that the test case with a large influence on the function of the function point is obtained. The server further obtains the test cases meeting the current test requirements by using the test stages and test types of the prior test cases, so that a more accurate test range is determined.
In one embodiment, a query request of a current version test range sent by a first test terminal through a first application program is received; obtaining test cases corresponding to a plurality of functional points to be tested of the current version according to the query request; and numbering the left and right values of the plurality of test cases, and returning the numbered test cases to the first test terminal for displaying.
The tester can utilize the first test terminal to perform regression testing on the application program. Before testing, the first testing terminal can send a query request of a testing range of a current version to the server through the first application program, the server obtains test cases corresponding to a plurality of functional points to be tested of the current version according to the query request, and the test cases are returned to a Web page of the first testing terminal for displaying.
In a conventional manner, when a server returns test cases to a Web page, a test case tree is generally generated according to the association between the test cases. The test case tree adopts a multi-branch tree structure, and due to the fact that the multi-branch tree structure is complex, loading time is long when a Web page of the first test terminal is displayed.
In order to effectively save the loading time of the test cases, the server can respectively carry out left and right value numbering on the plurality of test cases corresponding to each function point to be tested by utilizing a left and right value coding algorithm, and then a test case tree is generated. Specifically, the server takes the test case of the functional point to be tested as a node, and performs incremental sorting on the left value of the node by using a left-right value coding algorithm, so as to calculate the right value corresponding to each node. For example, if there is a parent node and the next level child node includes a first child node and a second child node, the server numbers the left value of the parent node as 1, the left value of the first child node as 2, the right value of the first child node as 3, the left value of the second child node as 4, the right value of the second child node as 5, and the right value of the parent node as 6. Similarly, the server can use a left-right value coding algorithm to number the test cases corresponding to all the functional points to be tested, and generate a test case tree.
After the server returns the test case tree to the first test terminal, the first test terminal can display the test case tree at the front end by using the dynamic tree plug-in according to the node level of the test case tree. Therefore, the tree structure of the test case is effectively simplified, and the loading speed of the test case is improved.
In one embodiment, a login request sent by a first test terminal through a second application program is received; returning a corresponding uploading page to the first test terminal according to the login request; so that the first test terminal displays an uploading page; the first test terminal also tests the application program to be tested according to the test range through the first application program to generate a test result file, and the test result file comprises a first identifier; receiving description information corresponding to a test result file uploaded by a second test terminal, and generating a two-dimensional code by using the description information, wherein the two-dimensional code carries a second identifier; returning the uploading page carrying the two-dimensional code to the second test terminal, so that the first test terminal scans the two-dimensional code, identifies a second identifier in the two-dimensional code, and associates the second identifier with the first identifier of the test result file; receiving a related test result file uploaded by a second test terminal; and acquiring a corresponding storage path according to the second identifier, and storing the received test result file according to the storage path.
The server sends the test range to a first test terminal according to the query request, the first test terminal tests the application program to be tested according to the test range to generate a test result file, and the test result file comprises a first identifier; the first test terminal comprises a second application program, the second application program sends a login request to the server, and the server sends a corresponding uploading page to the first test terminal according to the login request.
In this embodiment, the first test terminal may be a mobile terminal, and includes a tablet computer, a smart phone, and the like, which can run an application program for testing. And testing by the tester through the first test terminal to generate a corresponding test result file. Before the test result file is uploaded to the server, the tester needs to input description information corresponding to the test result file. The description information may include a test type, a test result key, a test phase, and the like.
Because the mobile terminal inputs the description information through the touch screen, if the mobile terminal is operated by a single hand, the input efficiency is low. In order to improve the input efficiency, the tester may input the description information using the second test terminal. The second test terminal may be a desktop computer, a notebook computer, etc. of the tester. The second test terminal sends the description information to the server, the server receives the description information and generates a two-dimensional code by using the description information, and the two-dimensional code carries a second identifier. And the server generates an uploading page, the uploading page comprises the two-dimension code, and the uploading page carrying the two-dimension code is returned to the second test terminal.
The first test terminal scans the two-dimensional code in the uploading page of the second test terminal, identifies a second identification in the two-dimensional code, associates the first identification with the second identification, obtains a test result file in the first test terminal through the association relationship by the second test terminal, uploads the test result file to the server, and the server stores the test result file according to a storage path corresponding to the second identification. Therefore, the uploading of the test result file and the description information is more convenient, and the test efficiency is effectively improved.
In one embodiment, as shown in fig. 3, there is provided an application test range determining system, including: a server 302 and a first test terminal 304, wherein:
a first test terminal 304, configured to send a query request of a test range of a current version;
the server 302 is configured to obtain a first mapping file corresponding to the current version according to the query request; the first mapping file comprises a function point, a storage path and a corresponding test case of the current version; acquiring a second mapping file corresponding to a version of the application program; the second mapping file comprises a function point of the previous version, a storage path and a corresponding test case; comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths; identifying the functional points to be detected by utilizing the changed functional points and/or the changed storage paths; acquiring a test case corresponding to the function point to be tested by using the first mapping file, and recording the test case as a test range corresponding to the current version;
the first test terminal 304 is further configured to receive a test range corresponding to the current version returned by the server 302.
In one embodiment, the server 302 is further configured to obtain a corresponding code file by using the changed function point and/or the changed storage path; the code files comprise a current version of code files and a previous version of code files; and comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as the function point to be tested.
In an embodiment, the server 302 is further configured to, if the function point is not changed, change the corresponding storage path, and obtain the corresponding code file according to the changed storage path; if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point; and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point.
In one embodiment, the server 302 is further configured to receive a query request of the current version test range sent by the first test terminal 304 through the first application; obtaining test cases corresponding to a plurality of functional points to be tested of the current version according to the query request; and numbering the left and right values of the plurality of test cases, and returning the numbered test cases to the first test terminal 304 for displaying.
In one embodiment, the application test scope determination system further comprises a second test terminal 306. The server 302 is further configured to receive a login request sent by the first test terminal 304 through the second application program; the server 302 is further configured to return a corresponding upload page to the first test terminal 304 according to the login request; so that the first test terminal 304 displays the upload page; the first test terminal 304 is further configured to test the application program to be tested according to the test range through the first application program, and generate a test result file, where the test result file includes the first identifier; the server 302 is further configured to receive description information corresponding to the test result file uploaded by the second test terminal 306, and generate a two-dimensional code by using the description information, where the two-dimensional code carries a second identifier; the server 302 is further configured to return the upload page carrying the two-dimensional code to the second test terminal 306, so that the first test terminal 304 scans the two-dimensional code, identifies a second identifier in the two-dimensional code, and associates the second identifier with the first identifier of the test result file; the server 302 receives the associated test result file uploaded by the second test terminal; the server 302 is further configured to obtain a corresponding storage path according to the second identifier, and store the received test result file according to the storage path.
In one embodiment, a server is provided, as shown in FIG. 4, comprising a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the server stores an operating system and computer readable instructions which, when executed by the processor, implement an application test scoping method. The internal memory of the server provides an environment for the operating system and the execution of computer-readable instructions in the non-volatile storage medium. The network interface of the server is used for communicating with an external terminal through network connection, for example, receiving a test range query request of a current version of an application program sent by a first test terminal and a test result file sent by a second test terminal. The processor, when executing the computer readable instructions, may perform the steps of:
acquiring a first mapping file corresponding to the current version of the application program to be tested; the first mapping file comprises a function point, a storage path and a corresponding test case of the current version; acquiring a second mapping file corresponding to a version of the application program to be tested; the second mapping file comprises a function point of the previous version, a storage path and a corresponding test case; comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths; identifying the functional points to be detected by utilizing the changed functional points and/or the changed storage paths; and acquiring a test case corresponding to the functional point to be tested by using the first mapping file, and recording the test case as a test range corresponding to the current version.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
acquiring a corresponding code file by using the changed functional points and/or the changed storage paths; the code files comprise a current version of code files and a previous version of code files;
and comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as the function point to be tested.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
if the function point is not changed, the corresponding storage path is changed, and a corresponding code file is obtained according to the changed storage path;
if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point;
and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
receiving a query request of a current version test range sent by a first test terminal through a first application program;
obtaining test cases corresponding to a plurality of functional points to be tested of the current version according to the query request;
and numbering the left and right values of the plurality of test cases, and returning the numbered test cases to the first test terminal for displaying.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of:
receiving a login request sent by a first test terminal through a second application program;
returning a corresponding uploading page to the first test terminal according to the login request; so that the first test terminal displays an uploading page; the first test terminal also tests the application program to be tested according to the test range through the first application program to generate a test result file, and the test result file comprises a first identifier;
receiving description information corresponding to a test result file uploaded by a second test terminal, and generating a two-dimensional code by using the description information, wherein the two-dimensional code carries a second identifier;
returning the uploading page carrying the two-dimensional code to the second test terminal, so that the first test terminal scans the two-dimensional code, identifies a second identifier in the two-dimensional code, and associates the second identifier with the first identifier of the test result file;
receiving a related test result file uploaded by a second test terminal;
and acquiring a corresponding storage path according to the second identifier, and storing the received test result file according to the storage path.
In one embodiment, one or more computer-readable non-transitory storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
acquiring a first mapping file corresponding to the current version of the application program to be tested; the first mapping file comprises a function point, a storage path and a corresponding test case of the current version;
acquiring a second mapping file corresponding to a version of the application program to be tested; the second mapping file comprises a function point of the previous version, a storage path and a corresponding test case;
comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths;
identifying the functional points to be detected by utilizing the changed functional points and/or the changed storage paths;
and acquiring a test case corresponding to the functional point to be tested by using the first mapping file, and recording the test case as a test range corresponding to the current version.
In one embodiment, the computer readable instructions when executed by the processor further perform the steps of:
acquiring a corresponding code file by using the changed functional points and/or the changed storage paths; the code files comprise a current version of code files and a previous version of code files;
and comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as the function point to be tested.
In one embodiment, the computer readable instructions when executed by the processor further perform the steps of:
if the function point is not changed, the corresponding storage path is changed, and a corresponding code file is obtained according to the changed storage path;
if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point;
and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point.
In one embodiment, the computer readable instructions when executed by the processor further perform the steps of:
receiving a query request of a current version test range sent by a first test terminal;
obtaining test cases corresponding to a plurality of functional points to be tested of the current version according to the query request;
and numbering the left and right values of the plurality of test cases, and returning the numbered test cases to the first test terminal for displaying.
In one embodiment, the computer readable instructions when executed by the processor further perform the steps of:
receiving a login request sent by a first test terminal through a second application program;
returning a corresponding uploading page to the first test terminal according to the login request; so that the first test terminal displays an uploading page; the first test terminal also tests the application program to be tested according to the test range through the first application program to generate a test result file, and the test result file comprises a first identifier;
receiving description information corresponding to a test result file uploaded by a second test terminal, and generating a two-dimensional code by using the description information, wherein the two-dimensional code carries a second identifier;
returning the uploading page carrying the two-dimensional code to the second test terminal, so that the first test terminal scans the two-dimensional code, identifies a second identifier in the two-dimensional code, and associates the second identifier with the first identifier of the test result file;
receiving a related test result file uploaded by a second test terminal;
and acquiring a corresponding storage path according to the second identifier, and storing the received test result file according to the storage path.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a non-volatile computer readable storage medium, and when executed, can include processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. An application test scope determination method, comprising:
acquiring a first mapping file corresponding to the current version of the application program to be tested; the first mapping file comprises a function point, a storage path and a corresponding test case of a current version;
acquiring a second mapping file corresponding to a version of the application program to be tested; the second mapping file comprises a function point of a previous version, a storage path and a corresponding test case;
comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths;
identifying the functional point to be tested by using the changed functional point and/or the changed storage path; the method comprises the following steps: acquiring a corresponding code file by using the changed functional point and/or the changed storage path; the code files comprise a current version of code files and a previous version of code files; comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as a function point to be tested;
and acquiring the test case corresponding to the functional point to be tested by using the first mapping file, and recording the test case as the test range corresponding to the current version.
2. The method according to claim 1, wherein the step of obtaining the corresponding code file by using the changed function point and/or the changed storage path comprises:
if the function point is not changed, the corresponding storage path is changed, and a corresponding code file is obtained according to the changed storage path;
if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point;
and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point.
3. The method of claim 1, further comprising:
receiving a query request of a current version test range sent by a first test terminal through a first application program;
obtaining test cases corresponding to a plurality of functional points to be tested of the current version according to the query request;
and numbering the left and right values of the plurality of test cases, and returning the numbered test cases to the first test terminal for displaying.
4. The method of claim 1, further comprising:
receiving a login request sent by a first test terminal through a second application program;
returning a corresponding uploading page to the first test terminal according to the login request; enabling the first test terminal to display the uploading page; the first test terminal also tests the application program to be tested according to the test range through the first application program to generate a test result file, and the test result file comprises a first identifier;
receiving description information corresponding to a test result file uploaded by a second test terminal, and generating a two-dimensional code by using the description information, wherein the two-dimensional code carries a second identifier;
returning the uploading page carrying the two-dimensional code to a second test terminal, so that the first test terminal scans the two-dimensional code, identifies a second identifier in the two-dimensional code, and associates the second identifier with a first identifier of a test result file;
receiving the associated test result file uploaded by the second test terminal;
and acquiring a corresponding storage path according to the second identifier, and storing the received test result file according to the storage path.
5. An application test scoping system, the system comprising:
the first test terminal is used for sending a query request of a test range of a current version;
the server is used for acquiring a first mapping file corresponding to the current version according to the query request; the first mapping file comprises a function point, a storage path and a corresponding test case of a current version; acquiring a second mapping file corresponding to a version of the application program; the second mapping file comprises a function point of a previous version, a storage path and a corresponding test case; comparing the first mapping file with the second mapping file to obtain changed function points and/or changed storage paths; identifying the functional point to be tested by using the changed functional point and/or the changed storage path; the method comprises the following steps: acquiring a corresponding code file by using the changed functional point and/or the changed storage path; the code files comprise a current version of code files and a previous version of code files; comparing the code file of the current version with the code file of the previous version, and if the code file of the current version is different from the code file of the previous version, recording the function point corresponding to the code file of the current version as a function point to be tested; acquiring a test case corresponding to the function point to be tested by using the first mapping file, and recording the test case as a test range corresponding to the current version;
and the first test terminal is also used for receiving the test range corresponding to the current version returned by the server.
6. The system according to claim 5, wherein the server is further configured to, if the function point is not changed, change the corresponding storage path, and obtain the corresponding code file according to the changed storage path; if the function point changes, the corresponding storage path does not change, and a corresponding code file is obtained according to the storage path corresponding to the changed function point; and if the function point changes and the corresponding storage path changes, acquiring the corresponding code file according to the storage path corresponding to the changed function point.
7. A server comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the method of any one of claims 1-4.
8. One or more computer-readable non-transitory storage media storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1-4.
CN201710618076.4A 2017-07-26 2017-07-26 Application program test range determining method, system, server and storage medium Active CN107729227B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710618076.4A CN107729227B (en) 2017-07-26 2017-07-26 Application program test range determining method, system, server and storage medium
PCT/CN2018/078321 WO2019019647A1 (en) 2017-07-26 2018-03-07 Method and system for determining application program testing range, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710618076.4A CN107729227B (en) 2017-07-26 2017-07-26 Application program test range determining method, system, server and storage medium

Publications (2)

Publication Number Publication Date
CN107729227A CN107729227A (en) 2018-02-23
CN107729227B true CN107729227B (en) 2020-03-06

Family

ID=61201724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710618076.4A Active CN107729227B (en) 2017-07-26 2017-07-26 Application program test range determining method, system, server and storage medium

Country Status (2)

Country Link
CN (1) CN107729227B (en)
WO (1) WO2019019647A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729227B (en) * 2017-07-26 2020-03-06 深圳壹账通智能科技有限公司 Application program test range determining method, system, server and storage medium
CN108804134A (en) * 2018-06-20 2018-11-13 上海哔哩哔哩科技有限公司 Software version management method, device, system based on product feature and medium
CN109271201A (en) * 2018-09-27 2019-01-25 华东师范大学 A kind of software pricing system of intelligent function point identification
CN109542779A (en) * 2018-11-12 2019-03-29 泰康保险集团股份有限公司 Test method, device and storage medium
CN110162467B (en) * 2019-04-23 2023-12-19 平安科技(深圳)有限公司 Software testing method, device, computer equipment and readable storage medium
CN110245081A (en) * 2019-05-31 2019-09-17 厦门美柚信息科技有限公司 Generate the method and device of minimum test scope
CN110392095A (en) * 2019-06-19 2019-10-29 深圳壹账通智能科技有限公司 Method for uploading, device, server and the storage medium of installation package file
CN111209206A (en) * 2020-01-13 2020-05-29 卡斯柯信号(北京)有限公司 Automatic test method and system for software product
CN111881051A (en) * 2020-08-03 2020-11-03 Oppo广东移动通信有限公司 Test case generation method and device, terminal and storage medium
CN113448862B (en) * 2021-07-12 2022-08-02 上海哔哩哔哩科技有限公司 Software version testing method and device and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286119A (en) * 2008-05-27 2008-10-15 华耀环宇科技(北京)有限公司 Method for determining function point changing through code analysis
CN101719095A (en) * 2009-12-30 2010-06-02 北京世纪高通科技有限公司 Method and device for managing regression testing
CN103309801A (en) * 2012-03-15 2013-09-18 百度在线网络技术(北京)有限公司 Method and device for determining regression testing range
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
CN103699488A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Call relation dependence graph based regression testing method and system
CN103955429A (en) * 2014-05-16 2014-07-30 北京金山网络科技有限公司 Method and device for determining regression testing range

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186456B (en) * 2011-12-29 2015-11-18 北京新媒传信科技有限公司 A kind of method and apparatus of system testing
CN103198010B (en) * 2012-01-06 2017-07-21 腾讯科技(深圳)有限公司 Method for testing software, apparatus and system
CN102831057B (en) * 2012-08-13 2015-02-11 于秀山 Method for analyzing software function change and influence thereof by using function diagram
US9021449B2 (en) * 2012-08-16 2015-04-28 Fujitsu Limited Software regression testing using symbolic execution
CN107729227B (en) * 2017-07-26 2020-03-06 深圳壹账通智能科技有限公司 Application program test range determining method, system, server and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286119A (en) * 2008-05-27 2008-10-15 华耀环宇科技(北京)有限公司 Method for determining function point changing through code analysis
CN101719095A (en) * 2009-12-30 2010-06-02 北京世纪高通科技有限公司 Method and device for managing regression testing
CN103309801A (en) * 2012-03-15 2013-09-18 百度在线网络技术(北京)有限公司 Method and device for determining regression testing range
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
CN103699488A (en) * 2013-12-30 2014-04-02 优视科技有限公司 Call relation dependence graph based regression testing method and system
CN103955429A (en) * 2014-05-16 2014-07-30 北京金山网络科技有限公司 Method and device for determining regression testing range

Also Published As

Publication number Publication date
WO2019019647A1 (en) 2019-01-31
CN107729227A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107729227B (en) Application program test range determining method, system, server and storage medium
CN108073519B (en) Test case generation method and device
CN110337641B (en) Determining application test results using screen shot primitive data
US10565097B2 (en) Orchestrating and providing a regression test
CN106796585B (en) Conditional validation rules
KR102154757B1 (en) Callpath finder
CN110221982B (en) Performance test method, device and equipment of business system and readable storage medium
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
US8311794B2 (en) Testing executable logic
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN112765023B (en) Test case generation method and device
EP3867747B1 (en) Dynamic monitoring and control of web page experiences based upon user activity of associated applications
CN114139209B (en) Information anti-theft method and system applied to big data of business user
CN108399151B (en) Data comparison system and method
CN109376534B (en) Method and apparatus for detecting applications
CN111026647B (en) Method and device for acquiring code coverage rate, computer equipment and storage medium
CN106843912B (en) Page information acquisition method and device
CN106843947B (en) Method and device for processing code defects
CN108459949B (en) Test method and terminal
CN111026568A (en) Data and task relation construction method and device, computer equipment and storage medium
CN111400170A (en) Data permission testing method and device
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
US9201897B1 (en) Global data storage combining multiple back-end storage devices
US10823782B2 (en) Ensuring completeness of interface signal checking in functional verification
CN112799955B (en) Method and device for detecting model change, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180529

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 200000 Xuhui District, Shanghai Kai Bin Road 166, 9, 10 level.

Applicant before: Shanghai Financial Technologies Ltd

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: Shenzhen one ledger Intelligent Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant