CN110297749B - Method and terminal for testing new function - Google Patents
Method and terminal for testing new function Download PDFInfo
- Publication number
- CN110297749B CN110297749B CN201810240181.3A CN201810240181A CN110297749B CN 110297749 B CN110297749 B CN 110297749B CN 201810240181 A CN201810240181 A CN 201810240181A CN 110297749 B CN110297749 B CN 110297749B
- Authority
- CN
- China
- Prior art keywords
- tested
- application program
- testing
- configuration
- version
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to the field of data processing, and in particular, to a method and a terminal for testing a new function. The method comprises the steps of setting a user group identifier of an application package to be tested as a first value; installing the application package to be tested at the test client to obtain an application program to be tested; adding a configuration item corresponding to the first value to a configuration file in an online server; and testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result. The method realizes the test of new functions in the production environment under the condition of not influencing the normal use of software by a real user.
Description
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and a terminal for testing a new function.
Background
After the release of the new version of many software products, new functions need to be brought online by modifying configuration parameters of a management background arranged in a server, and the modification directly influences the use of the related functions of users. Therefore, before each product is formally online, corresponding software upgrading and function testing of new configuration are required to be performed, so that problems of design, programs and the like of the tested product can be found in advance, and repair is performed in advance to ensure that the new functions of the product can be normally used after the formal environment is modified and configured.
Since the functions of the software server may be inconsistent between the pre-production environment (the test environment before the formal environment) and the production environment (the formal environment), a tester needs to verify the configuration functions in the production environment before issuing a new version. However, the function verification of the part can only be performed by temporarily modifying the configuration parameters in the production environment, and the test is completed and then is off-line. Even if gray level configuration is adopted, the function use of a small part of users can be influenced, in addition, the cache time of part of configuration functions exists, even if the test is finished, the management background resets the configuration parameters, the client can still see the newly added configuration functions during the test, and the newly added configuration functions are possibly abnormal at the moment, so that the user experience is influenced.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: how to test new functionality in a production environment without affecting the normal use of software by real users.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
the invention provides a method for testing new functions, which comprises the following steps:
setting the user group identification of the application package to be tested as a first value;
installing the application package to be tested at the test client to obtain an application program to be tested;
adding a configuration item corresponding to the first value to a configuration file in an online server;
and testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result.
The invention also provides a terminal for testing new functions, comprising one or more processors and a memory, said memory storing a program and being configured to perform the following steps by said one or more processors:
setting the user group identification of the application package to be tested as a first value;
installing the application package to be tested at the test client to obtain an application program to be tested;
adding a configuration item corresponding to the first value for a configuration file in an online server;
and testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result.
The invention has the beneficial effects that: different from the prior art that the configuration file in the online server is directly modified, the client interacting with the online server is influenced by the modification of the configuration file, and the user experience is poor; the invention configures the specific user group identification for the application package to be tested, so that the newly added configuration item in the online server only influences the simulated user group using the application package to be tested, and does not influence the real user who interacts with the online server and has no first value of the user group identification, thereby realizing the test of new functions in a production environment under the condition of not influencing the normal use of software by the real user.
Drawings
FIG. 1 is a block flow diagram of an embodiment of a method for testing new functionality provided by the present invention;
FIG. 2 is a block diagram of a terminal for testing new functions according to an embodiment of the present invention;
description of reference numerals:
1. a processor; 2. a memory.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
The noun interpretation:
online server | The online server is used for interacting with clients used by a real user group. |
The most key technical conception of the invention is as follows: the invention configures the specific user group identification for the application package to be tested, so that the newly added configuration item in the online server only influences the simulated user group using the application package to be tested, and realizes the test of new functions in a production environment under the condition of not influencing the normal use of software by real users.
Referring to fig. 1 and fig. 2,
as shown in fig. 1, the present invention provides a method for testing a new function, comprising:
setting a user group identifier of an application package to be tested as a first value;
installing the application package to be tested at the test client to obtain an application program to be tested;
adding a configuration item corresponding to the first value for a configuration file in an online server;
and testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result.
Further, still include:
installing a historical version application program corresponding to the application program to be tested in the test client;
modifying a user group identification of the historic version application to the first value;
and testing the compatibility of the historical version application program and the configuration file to obtain a first compatibility test result.
According to the description, the compatibility of the application program of the historical version and the newly added configuration item is realized, so that the normal use of software of a user which is not upgraded to the latest version can be guaranteed.
Further, still include:
s1, installing an initial version application program corresponding to the application program to be tested in the test client to obtain the current application program to be tested;
s2, upgrading the current application program to be tested to a next version;
s3, testing the compatibility of the current application program to be tested and the configuration file to obtain a second compatibility test result;
and S4, repeatedly executing the S2 to the S3 until the current application program to be tested is the same as the version of the application program to be tested.
According to the description, the application program with the recompiled first version is installed, automatic gradual upgrading is carried out, then each application package after upgrading is started one by one, the current newly configured function is verified, the use scene of the user is truly restored, and the user using different historical versions can be guaranteed to be upgraded normally.
Further, the method also comprises the following steps:
acquiring configuration effective time corresponding to the configuration items;
and when the configuration validation time is reached, starting the test client.
Further, the method also comprises the following steps:
and setting user identifications corresponding to more than one client connected with the online server as the first value.
It can be known from the above description that, when the new version of the application passes the test in the production environment, the user identifier corresponding to the client used by the real user is set to the first value, so that the new configuration item can act on the client used by the real user, thereby implementing the version upgrade of the application.
As shown in fig. 2, the present invention also provides a terminal for testing new functions, comprising one or more processors 1 and a memory 2, wherein the memory 2 stores programs and is configured to be executed by the one or more processors 1 to perform the following steps:
setting a user group identifier of an application package to be tested as a first value;
installing the application package to be tested at the test client to obtain an application program to be tested;
adding a configuration item corresponding to the first value to a configuration file in an online server;
and testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result.
Further, the method also comprises the following steps:
installing a historical version application program corresponding to the application program to be tested in the test client;
modifying a user group identification of the historic version application to the first value;
and testing the compatibility of the historical version application program and the configuration file to obtain a first compatibility test result.
Further, the method also comprises the following steps:
s1, installing an initial version application program corresponding to the application program to be tested in the test client to obtain the current application program to be tested;
s2, upgrading the current application program to be tested to a next version;
s3, testing the compatibility of the current application program to be tested and the configuration file to obtain a second compatibility test result;
and S4, repeatedly executing the S2 to the S3 until the version of the current application program to be tested is the same as that of the application program to be tested.
Further, still include:
acquiring configuration effective time corresponding to the configuration items;
and starting the test client when the configuration validation time is reached.
Further, the method also comprises the following steps:
and setting user identifications corresponding to more than one client connected with the online server as the first value.
The first embodiment of the invention is as follows:
the embodiment provides a method for testing a new function, which comprises the following steps:
s1, setting a user group identifier of an application package to be tested as a first value.
The configuration items suitable for different user groups are different, and the adaptation is carried out according to the user group identification in the application program and the user group identification of the configuration file in the online server. For example, the user group identifier of the client used by the real user connected to the online server is a second value, and the client used by the real user performs the interactive operation with the online server only according to the configuration item corresponding to the second value in the configuration file. The present embodiment tests the new functionality in the production environment, i.e. directly modifies the configuration file in the online server to test the new functionality. However, the configuration item corresponding to the new function is set to the first value, so that the newly added configuration item only acts on the test client used by the simulation user, and the normal use of the real user is not influenced.
S2, installing the application package to be tested at the test client to obtain the application program to be tested.
Wherein, the number of the test clients is one or more.
And S3, adding a configuration item corresponding to the first value for the configuration file in the online server.
The user group corresponding to the first value is a simulation user group and is specially used for testing user data of the new function.
For example, the configuration item corresponding to the first value is to add an album entry in the application "My" interface.
S4, acquiring configuration effective time corresponding to the configuration items; and when the configuration validation time is reached, starting the test client.
And S5, testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result.
For example, the application program to be tested normally enters a functional interface to be verified, a "my" interface confirms the display state of an initial interface entry, and when the application program is not configured, an "album" entry is not displayed here. After the configuration of all the requirements in all the configuration lists to be tested is completed, whether an album entrance appears on an interface is verified, and the operation conditions of the album module and related functions are verified: for example, whether the display of the related controls in the album is normal, whether each control is clicked effectively, whether the photos can be uploaded normally, whether the photos can support selection, whether the photos can be added and deleted normally, whether the local pictures can be read automatically when the album is added, and the like.
S6, installing a historical version application program corresponding to the application program to be tested in the test client; modifying a user group identification of the historic version application to the first value; and testing the compatibility of the historical version application program and the configuration file to obtain a first compatibility test result.
For example, install all historical version recompiled applications for verification: and when the application program has a corresponding newly configured functional module, entering a corresponding functional interface to verify whether the current function is normally operated, and entering the module to verify the album entry function if the My module exists. The current application has no corresponding module entrance, and if the application has no 'my' module, the first-level function case of the application package can be directly verified to pass.
And S7, in the process of testing the application program upgrading, the compatibility of the upgraded application program and the configuration file is tested. The method comprises the following specific steps:
s71, installing an initial version application program corresponding to the application program to be tested in the test client to obtain the current application program to be tested;
s72, upgrading the current application program to be tested to a next version;
s73, testing the compatibility of the current application program to be tested and the configuration file to obtain a second compatibility test result;
and S74, repeatedly executing the S72 to the S73 until the version of the current application program to be tested is the same as that of the application program to be tested.
And then, starting each upgraded application package one by one, verifying the current newly configured function, and truly restoring the use scene of the user.
And S8, collecting a test result.
And collecting and summarizing the results of the functionality and compatibility tests. No matter what the test result is, the application version information, the execution condition, the execution time and the test result of each test client in the current round are output after the test is finished. By comparing the application version information, the execution condition, the execution time and the data of the test result of all the test clients, the results of the function test and the compatibility test of the configuration function can be directly obtained, and the normal operation of different historical versions is not influenced by the newly configured function.
And S9, setting user identifications corresponding to more than one client connected with the online server as the first value.
When the application program of the new version passes the test in the production environment, the user identifier corresponding to the client used by the real user is set to be a first value, so that the new configuration item can act on the client used by the real user, and the version upgrade of the application program is realized.
The second embodiment of the invention is as follows:
the present embodiment provides a terminal for testing new functions, comprising one or more processors 1 and a memory 2, said memory 2 storing programs and being configured to be executed by said one or more processors 1 by:
s1, setting a user group identifier of an application package to be tested as a first value.
The configuration items suitable for different user groups are different, and the adaptation is carried out according to the user group identification in the application program and the user group identification of the configuration file in the online server. For example, the user group identifier of the client used by the real user connected to the online server is a second value, and the client used by the real user performs the interactive operation with the online server only according to the configuration item corresponding to the second value in the configuration file. The present embodiment tests the new functionality in the production environment, i.e. directly modifies the configuration file in the on-line server to test the new functionality. However, the configuration item corresponding to the new function is set as the first value, so that the newly added configuration item only acts on the test client used by the simulation user, and the normal use of the real user is not influenced.
S2, installing the application package to be tested at the test client to obtain the application program to be tested.
Wherein, the number of the test clients is one or more.
And S3, adding a configuration item corresponding to the first value for the configuration file in the online server.
The user group corresponding to the first value is a simulation user group and is specially used for testing user data of the new function.
S4, acquiring configuration effective time corresponding to the configuration items; and starting the test client when the configuration validation time is reached.
And S5, testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result.
S6, installing a historical version application program corresponding to the application program to be tested in the test client; modifying a user group identification of the historic version application to the first value; and testing the compatibility of the historical version application program and the configuration file to obtain a first compatibility test result.
And S7, in the process of testing the application program upgrading, the compatibility of the upgraded application program and the configuration file is tested. The method specifically comprises the following steps:
s71, installing an initial version application program corresponding to the application program to be tested in the test client to obtain the current application program to be tested;
s72, upgrading the current application program to be tested to a next version;
s73, testing the compatibility of the current application program to be tested and the configuration file to obtain a second compatibility test result;
and S74, repeatedly executing the S72 to the S73 until the version of the current application program to be tested is the same as that of the application program to be tested.
And then, starting each upgraded application package one by one, verifying the current newly configured function, and truly restoring the use scene of the user.
And S8, collecting a test result.
Wherein, the results of the functionality and compatibility tests are collected and summarized. No matter what the test result is, the application version information, the execution condition, the execution time and the test result of each test client in the current round are output after the test is finished. By comparing the application version information, the execution condition, the execution time and the test result of all the test clients, the results of the function test and the compatibility test of the configuration function can be directly obtained, and the normal operation of different historical versions is not influenced by the newly configured function.
And S9, setting the user identification corresponding to more than one client connected with the online server as the first value.
When the application program of the new version passes the test in the production environment, the user identifier corresponding to the client used by the real user is set to be a first value, so that the new configuration item can act on the client used by the real user, and the version upgrade of the application program is realized.
In summary, according to the method and the terminal for testing a new function provided by the present invention, by configuring the specific user group identifier for the application package to be tested, the configuration item newly added in the online server only affects the simulated user group using the application package to be tested, but does not affect the real users who interact with the online server and have the user group identifier not being the first value, so that the new function can be tested in the production environment without affecting the normal use of software by the real users. Furthermore, the compatibility of the application program of the historical version and the newly added configuration item is realized, so that the normal use of software of a user which is not upgraded to the latest version can be guaranteed not to be influenced. Further, the application program with the recompiled first version is installed, automatic gradual upgrading is carried out, then each upgraded application package is started one by one, the current newly configured function is verified, the use scene of the user is truly restored, and the user using different historical versions can be guaranteed to be upgraded normally. Furthermore, when the application program of the new version passes the test in the production environment, the user identifier corresponding to the client used by the real user is set to be the first value, so that the new configuration item can act on the client used by the real user, and the version upgrade of the application program is realized.
The above description is only an embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent modifications made by the present invention and the contents of the accompanying drawings, which are directly or indirectly applied to the related technical fields, are included in the scope of the present invention.
Claims (8)
1. A method of testing a new function, comprising:
setting a user group identifier of an application package to be tested as a first value;
installing the application package to be tested at the test client to obtain an application program to be tested;
adding a configuration item corresponding to the first value to a configuration file in an online server;
testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result;
further comprising:
s1, installing an initial version application program corresponding to the application program to be tested in the test client to obtain a current application program to be tested;
s2, upgrading the current application program to be tested to a next version;
s3, testing the compatibility of the current application program to be tested and the configuration file to obtain a second compatibility test result;
and S4, repeatedly executing the S2 to the S3 until the version of the current application program to be tested is the same as that of the application program to be tested.
2. The method of testing new functionality according to claim 1, further comprising:
installing a historical version application program corresponding to the application program to be tested in the test client;
modifying a user group identification of the historic version application to the first value;
and testing the compatibility of the historical version application program and the configuration file to obtain a first compatibility test result.
3. The method of testing new functionality according to claim 1, further comprising:
acquiring configuration effective time corresponding to the configuration items;
and starting the test client when the configuration validation time is reached.
4. The method of testing new functionality according to claim 1, further comprising:
and setting user identifications corresponding to more than one client connected with the online server as the first value.
5. A terminal for testing new functions, comprising one or more processors and a memory, the memory storing a program and configured to perform the following steps by the one or more processors:
setting a user group identifier of an application package to be tested as a first value;
installing the application package to be tested at the test client to obtain an application program to be tested;
adding a configuration item corresponding to the first value to a configuration file in an online server;
testing the function corresponding to the configuration item in the application program to be tested to obtain a function test result;
further comprising:
s1, installing an initial version application program corresponding to the application program to be tested in the test client to obtain a current application program to be tested;
s2, upgrading the current application program to be tested to a next version;
s3, testing the compatibility of the current application program to be tested and the configuration file to obtain a second compatibility test result;
and S4, repeatedly executing the S2 to the S3 until the version of the current application program to be tested is the same as that of the application program to be tested.
6. The terminal for testing new functions of claim 5, further comprising:
installing a historical version application program corresponding to the application program to be tested in the test client;
modifying a user group identification of the historic version application to the first value;
and testing the compatibility of the historical version application program and the configuration file to obtain a first compatibility test result.
7. The terminal for testing new functionality according to claim 5, further comprising:
acquiring configuration effective time corresponding to the configuration items;
and when the configuration validation time is reached, starting the test client.
8. The terminal for testing new functionality according to claim 5, further comprising:
and setting user identifications corresponding to more than one client connected with the online server as the first value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810240181.3A CN110297749B (en) | 2018-03-22 | 2018-03-22 | Method and terminal for testing new function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810240181.3A CN110297749B (en) | 2018-03-22 | 2018-03-22 | Method and terminal for testing new function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110297749A CN110297749A (en) | 2019-10-01 |
CN110297749B true CN110297749B (en) | 2022-12-13 |
Family
ID=68025550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810240181.3A Active CN110297749B (en) | 2018-03-22 | 2018-03-22 | Method and terminal for testing new function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110297749B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908700A (en) * | 2020-02-13 | 2020-03-24 | 苏宁云计算有限公司 | Task integrated publishing method and device |
CN113722204A (en) * | 2020-05-26 | 2021-11-30 | 华为技术有限公司 | Application debugging method, system, device and medium |
CN114238099B (en) * | 2021-12-09 | 2022-08-09 | 北京五八信息技术有限公司 | Method and device for gray scale test, electronic equipment and readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7370101B1 (en) * | 2003-12-19 | 2008-05-06 | Sun Microsystems, Inc. | Automated testing of cluster data services |
CN103401713A (en) * | 2013-07-31 | 2013-11-20 | 北京山海树科技有限公司 | System and method for software release |
CN104035869A (en) * | 2014-06-19 | 2014-09-10 | 科大讯飞股份有限公司 | Application evaluation method, terminal, and server |
CN106326108A (en) * | 2016-08-09 | 2017-01-11 | 北京金山安全软件有限公司 | New application testing method and device |
CN107678759A (en) * | 2017-09-11 | 2018-02-09 | 上海斐讯数据通信技术有限公司 | A kind of method and system of upgrade applications |
-
2018
- 2018-03-22 CN CN201810240181.3A patent/CN110297749B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7370101B1 (en) * | 2003-12-19 | 2008-05-06 | Sun Microsystems, Inc. | Automated testing of cluster data services |
CN103401713A (en) * | 2013-07-31 | 2013-11-20 | 北京山海树科技有限公司 | System and method for software release |
CN104035869A (en) * | 2014-06-19 | 2014-09-10 | 科大讯飞股份有限公司 | Application evaluation method, terminal, and server |
CN106326108A (en) * | 2016-08-09 | 2017-01-11 | 北京金山安全软件有限公司 | New application testing method and device |
CN107678759A (en) * | 2017-09-11 | 2018-02-09 | 上海斐讯数据通信技术有限公司 | A kind of method and system of upgrade applications |
Also Published As
Publication number | Publication date |
---|---|
CN110297749A (en) | 2019-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20100100772A1 (en) | System and method for verifying compatibility of computer equipment with a software product | |
CN110058998B (en) | Software testing method and device | |
US20150350806A1 (en) | High-Speed Application for Installation on Mobile Devices for Permitting Remote Configuration of Such Mobile Devices | |
CN110297749B (en) | Method and terminal for testing new function | |
CN113505073B (en) | Performance test method, device, equipment and medium of database | |
CN110727575B (en) | Information processing method, system, device and storage medium | |
CN108874678B (en) | Automatic testing method and device for intelligent program | |
CN108132876B (en) | Embedded software object code unit testing method based on injection mode | |
CN108111364B (en) | Service system testing method and device | |
CN112214405B (en) | Software testing method and device, electronic equipment and readable storage medium | |
CN106776327A (en) | A kind of application program regression testing method and device | |
CN113360366B (en) | Web page testing method, testing device, electronic equipment and storage medium | |
CN107357721B (en) | Method and device for testing system | |
CN105117340A (en) | URL (Uniform Resource Locator) detection method and device used for quality evaluation of iOS browser application | |
CN109388420A (en) | Application upgrade test method, device, computer equipment and storage medium | |
CN110888800A (en) | Service interaction function test method, device, storage medium and test system | |
CN111651358A (en) | Method for generating test cases, software testing method, apparatus and server | |
CN112433953B (en) | Embedded automated testing method, device, equipment and medium based on online game client | |
CN112882897A (en) | Abnormal scene processing method and device, electronic equipment and storage medium | |
CN107247661B (en) | Method and system for supporting automatic verification of installation package of application | |
CN113094281B (en) | Test method and device for hybrid App | |
CN109446105A (en) | Web application test method, device, readable medium and electronic equipment | |
CN116382243A (en) | Vehicle control signal testing method and device, storage medium and electronic device | |
CN112965868B (en) | Automatic testing method and device for game controller and readable medium | |
CN114880244A (en) | Application testing method and device, 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |