CN108733571A - A kind of test method, device, equipment and computer readable storage medium - Google Patents

A kind of test method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN108733571A
CN108733571A CN201810520918.7A CN201810520918A CN108733571A CN 108733571 A CN108733571 A CN 108733571A CN 201810520918 A CN201810520918 A CN 201810520918A CN 108733571 A CN108733571 A CN 108733571A
Authority
CN
China
Prior art keywords
built
test
resource file
data
resource
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.)
Granted
Application number
CN201810520918.7A
Other languages
Chinese (zh)
Other versions
CN108733571B (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810520918.7A priority Critical patent/CN108733571B/en
Publication of CN108733571A publication Critical patent/CN108733571A/en
Application granted granted Critical
Publication of CN108733571B publication Critical patent/CN108733571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • 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/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The present invention proposes a kind of test method, including:The built-in resource file that the setting page is presented in the case where the application program can not connect internet is obtained in the installation kit of application program;The test data in all built-in resource files is detected, and each built-in resource file is tested successively by preset test case, to obtain the error in data in the built-in resource file;The test data and error in data in all built-in resource files are presented by test report.The invention also discloses a kind of test device, equipment and computer readable storage mediums, by implementing said program, the automatic test to built-in resource file in internet application is realized, the measuring accuracy and testing efficiency of built-in resource file in internet application are effectively increased.

Description

A kind of test method, device, equipment and computer readable storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of test method, device, equipment and computer-readable deposit Storage media.
Background technology
With the fast development of Internet technology, computer equipment (such as:Mobile terminal) in various the Internet, applications Program (APP, Application) has also obtained quickly universal.But existing internet application can not connect internet In the case of need by built-in resource file in internet application (including:Icon (icon) redirects URL (Uniform Resource Locator, uniform resource locator) and the information such as title) the setting page is presented.But go out in built-in resource file Show situations such as carrying test data in error in data or built-in resource file, can cause internet application that can not connect The setting page is correctly presented in the case of connecing internet.
The test of built-in resource file needs, by Test Engineer's manual test, to survey in existing internet application Heavy workload is tried, and in the case of the built-in resource file test leakage examination of some during Test Engineer is to internet application, The built-in resource data of mistake will be caused to be issued in internet application, user is seriously affected and use internet application User experience.
Invention content
The present invention proposes a kind of test method, device, equipment and computer readable storage medium, to solve existing skill The problem that built-in resource file workload is excessive in internet application is tested by Test Engineer in art.
The technical solution adopted by the present invention is to provide a kind of test method, including:
It is obtained in the installation kit of application program and setting is presented in the case where the application program can not connect internet The built-in resource file of the page;
The test data in all built-in resource files is detected, and by preset test case successively to each institute It states built-in resource file to be tested, to obtain the error in data in the built-in resource file;
The test data and error in data in all built-in resource files are presented by test report.
Optionally, the built-in resource file includes the built-in resource file that server is issued by setting interface;
Described obtained in the installation kit of application program is presented in the case where the application program can not connect internet The built-in resource file of the page is set, including:
Obtain the built-in money that the setting interface stored in profile folder in the installation kit of the application program issues Source file.
Optionally, the built-in resource file further includes to set the built-in resource file of format configuration;
Test data in all built-in resource files of detection, including:
By preset regular expression to the uniform resource position mark URL that is carried in each built-in resource file into Row filtering, and judge the URL being obtained by filtration whether comprising test mark;
It is identified if the URL includes test, judges that the built-in resource file for carrying the URL carries test data;
Otherwise the built-in resource file of the judgement carrying URL does not carry test data.
Optionally, described that each built-in resource file is tested successively by preset test case, including:
The test case is called to test successively each built-in resource file by preset test frame.
Optionally, the test case includes:Test input data and test benchmark data;
It is described that each built-in resource file is tested successively by preset test case, including:
Judge that each built-in resource file tests the test result data and the test that input data obtains based on described Whether reference data matches;
If the test result data and the test benchmark Data Matching, judge that each built-in resource file is deposited In error in data;
Otherwise judge that error in data is not present in each built-in resource file.
The present invention also provides a kind of test devices, including:
Acquisition module, for obtaining the feelings that can not connect internet in the application program in the installation kit of application program The built-in resource file of the setting page is presented under condition;
Test module for detecting the test data in all built-in resource files, and is used by preset test Example successively tests each built-in resource file, to obtain the error in data in the built-in resource file;
Reporting modules, for test data and data mistake in all built-in resource files to be presented by test report Accidentally.
Optionally, the built-in resource file includes the built-in resource file that server is issued by setting interface;It is described Acquisition module is specifically used for:
Obtain the built-in money that the setting interface stored in profile folder in the installation kit of the application program issues Source file.
Optionally, the built-in resource file further includes to set the built-in resource file of format configuration;
Test data in all built-in resource files of detection, including:
By preset regular expression to the uniform resource position mark URL that is carried in each built-in resource file into Row filtering, and judge the URL being obtained by filtration whether comprising test mark;
It is identified if the URL includes test, judges that the built-in resource file for carrying the URL carries test data;
Otherwise the built-in resource file of the judgement carrying URL does not carry test data.
Optionally, described that each built-in resource file is tested successively by preset test case, including:
The test case is called to test successively each built-in resource file by preset test frame.
Optionally, the test case includes:Test input data and test benchmark data;
It is described that each built-in resource file is tested successively by preset test case, including:
Judge that each built-in resource file tests the test result data and the test that input data obtains based on described Whether reference data matches;
If the test result data and the test benchmark Data Matching, judge that each built-in resource file is deposited In error in data;
Otherwise judge that error in data is not present in each built-in resource file.
The present invention also provides a kind of test equipment, the test equipment includes processor and memory;
The processor is for executing the test program stored in memory, the step of to realize above-mentioned test method.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage there are one or The multiple programs of person, one or more of programs can be executed by one or more processor, to realize above-mentioned test side The step of method.
Using above-mentioned technical proposal, the present invention at least has following advantages:
A kind of test method, device, equipment and computer readable storage medium of the present invention, realize and answer internet With the automatic test of built-in resource file in program, the test essence of built-in resource file in internet application is effectively increased Degree and testing efficiency.
Description of the drawings
Fig. 1 is the test method flow chart of first embodiment of the invention;
Fig. 2 is the test method flow chart of second embodiment of the invention;
Fig. 3 is the test method flow chart of third embodiment of the invention;
Fig. 4 is the test method flow chart of fourth embodiment of the invention;
Fig. 5 is the test method flow chart of fifth embodiment of the invention;
Fig. 6 is the test device composed structure schematic diagram of the 6th to the tenth embodiment of the invention;
Fig. 7 is the test equipment composed structure schematic diagram of eleventh embodiment of the invention.
Specific implementation mode
Further to illustrate the present invention to reach the technological means and effect that predetermined purpose is taken, below in conjunction with attached drawing And preferred embodiment, the present invention is described in detail as after.
Test method provided in an embodiment of the present invention, for realizing in internet application built-in resource file from Dynamic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application, existing to solve The problem that built-in resource file workload is excessive in internet application is tested by Test Engineer in technology.
First embodiment of the invention, a kind of test method, as shown in Figure 1, including step in detail below:
Step S101 is obtained in the installation kit of application program and is presented in the case where application program can not connect internet Set the built-in resource file of the page.
Optionally, step S101, including:
The format of the installation kit of application program is converted;
It is obtained in the installation kit of application program after the format conversion in the case where application program can not connect internet The built-in resource file of the setting page is presented.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Such as:Step S101, including:The ipa formats of the installation kit of application program are converted, zip formats are converted to; It is obtained in the installation kit of the application program of zip formats and the setting page is presented in the case where application program can not connect internet Built-in resource file.
Step S102 detects the test data in all built-in resource files, and right successively by preset test case Each built-in resource file is tested, to obtain the error in data in built-in resource file.
In the present embodiment, include in following manner to the mode for detecting the test data in all built-in resource files One or more combination:
Mode one detects in each built-in resource file with the presence or absence of test mark;It is surveyed if existing in built-in resource file Test-object is known, then judges that there are test datas in built-in resource file;Otherwise judge that test data is not present in built-in resource file;
Mode two detects in each built-in resource file with the presence or absence of test URL (Uniform Resource Locator, uniform resource locator);If there is test URL in built-in resource file, judge exist in built-in resource file Test data;Otherwise judge that test data is not present in built-in resource file.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Test data and error in data in all built-in resource files are presented by test report by step S103.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test method described in first embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Second embodiment of the invention, a kind of test method, as shown in Fig. 2, including step in detail below:
Step S201 is obtained in the installation kit of application program and is presented in the case where application program can not connect internet Set the built-in resource file of the page.
Optionally, step S201, including:
In the case where built-in resource bundle includes the built-in resource file that server is issued by setting interface, acquisition is answered The built-in resource file issued with the setting interface stored in profile folder in the installation kit of program;Wherein, built-in resource text Part is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Step S201, including:Server RMS (Resource Manage are included in built-in resource bundle System, resource management system) in the case of the built-in resource file that issues by RMS interfaces, obtain the installation of application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files in packet issue;Wherein, built-in resource text Part is the resource file that the setting page is presented in the case that application program can not connect internet.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, therefore the built-in resource file stored in profile folder in the installation kit of application program is obtained, can accurately obtained Take built-in resource file in the installation kit of application program.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Step S202 detects the test data in all built-in resource files, and right successively by preset test case Each built-in resource file is tested, to obtain the error in data in built-in resource file.
In the present embodiment, include in following manner to the mode for detecting the test data in all built-in resource files One or more combination:
Mode one detects in each built-in resource file with the presence or absence of test mark;It is surveyed if existing in built-in resource file Test-object is known, then judges that there are test datas in built-in resource file;Otherwise judge that test data is not present in built-in resource file;
Mode two detects in each built-in resource file with the presence or absence of test URL;If there is test in built-in resource file URL then judges that there are test datas in built-in resource file;Otherwise judge that test data is not present in built-in resource file.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Test data and error in data in all built-in resource files are presented by test report by step S203.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test method described in second embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Third embodiment of the invention, a kind of test method, as shown in figure 3, including step in detail below:
Step S301 is obtained in the installation kit of application program and is presented in the case where application program can not connect internet Set the built-in resource file of the page.
Optionally, step S301, including:
It is included in built-in resource bundle:The built-in resource file that server is issued by setting interface, and to set format In the case of the built-in resource file of configuration, obtain under the setting interface stored in profile folder in the installation kit of application program The built-in resource file of hair, and obtain all to set the built-in resource file of format configuration in the installation kit of application program;Its In, built-in resource file is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Step S301, including:The built-in money that server RMS is issued by RMS interfaces is included in built-in resource bundle Source file, and with JSON formats configuration built-in resource file in the case of, in the installation kit for obtaining application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files issue, and obtain the peace of application program All built-in resource files configured with JSON formats in dress packet;Wherein, built-in resource file, which is application program, can not connect mutually The resource file of the setting page is presented in the case of networking.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, while the built-in resource file of other in the installation kit of application program is configured with JSON formats, therefore is obtained and answered The built-in resource file of the built-in resource file and all JSON formats that are stored in being pressed from both sides with profile in the installation kit of program, All built-in resource files in the installation kit of application program can accurately be obtained.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Step S302 detects the test data in all built-in resource files, and right successively by preset test case Each built-in resource file is tested, to obtain the error in data in built-in resource file.
Optionally, the mode of the test data in all built-in resource files is detected, including but not limited to:
The URL carried in each built-in resource file is filtered by preset regular expression, and judges to filter Whether obtained URL includes test mark;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
For example, the mode of the test data in all built-in resource files of detection, including:
The URL carried in each built-in resource file is filtered by preset regular expression;Wherein, canonical table Include but not limited to up to formula:Https&&http regular expressions, wbmain agreements regular expression and https&&http&& Wbmain regular expressions;And judge the URL being obtained by filtration whether comprising test mark;Wherein, test mark includes but unlimited In:The tests such as apptest and/or pmalltest identify;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Test data and error in data in all built-in resource files are presented by test report by step S303.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test method described in third embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Fourth embodiment of the invention, a kind of test method, as shown in figure 4, including step in detail below:
Step S401 is obtained in the installation kit of application program and is presented in the case where application program can not connect internet Set the built-in resource file of the page.
Optionally, step S401, including:
It is included in built-in resource bundle:The built-in resource file that server is issued by setting interface, and to set format In the case of the built-in resource file of configuration, obtain under the setting interface stored in profile folder in the installation kit of application program The built-in resource file of hair, and obtain all to set the built-in resource file of format configuration in the installation kit of application program;Its In, built-in resource file is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Step S401, including:The built-in money that server RMS is issued by RMS interfaces is included in built-in resource bundle Source file, and with JSON formats configuration built-in resource file in the case of, in the installation kit for obtaining application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files issue, and obtain the peace of application program All built-in resource files configured with JSON formats in dress packet;Wherein, built-in resource file, which is application program, can not connect mutually The resource file of the setting page is presented in the case of networking.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, while the built-in resource file of other in the installation kit of application program is configured with JSON formats, therefore is obtained and answered The built-in resource file of the built-in resource file and all JSON formats that are stored in being pressed from both sides with profile in the installation kit of program, All built-in resource files in the installation kit of application program can accurately be obtained.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Step S402 detects the test data in all built-in resource files, and right successively by preset test case Each built-in resource file is tested, to obtain the error in data in built-in resource file.
Optionally, the mode of the test data in all built-in resource files is detected, including but not limited to:
The URL carried in each built-in resource file is filtered by preset regular expression, and judges to filter Whether obtained URL includes test mark;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
For example, the mode of the test data in all built-in resource files of detection, including:
The URL carried in each built-in resource file is filtered by preset regular expression;Wherein, canonical table Include but not limited to up to formula:Https&&http regular expressions, wbmain agreements regular expression and https&&http&& Wbmain regular expressions;And judge the URL being obtained by filtration whether comprising test mark;Wherein, test mark includes but unlimited In:The tests such as apptest and/or pmalltest identify;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
Optionally, each built-in resource file is tested successively by preset test case, including:
Test case is called to test successively each built-in resource file by preset test frame.
For example, each built-in resource file is tested successively by preset test case, including:By preset TestNg test frames call test case to test successively each built-in resource file.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Test data and error in data in all built-in resource files are presented by test report by step S403.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test method described in fourth embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Fifth embodiment of the invention, a kind of test method, as shown in figure 5, including step in detail below:
Step S501 is obtained in the installation kit of application program and is presented in the case where application program can not connect internet Set the built-in resource file of the page.
Optionally, step S501, including:
It is included in built-in resource bundle:The built-in resource file that server is issued by setting interface, and to set format In the case of the built-in resource file of configuration, obtain under the setting interface stored in profile folder in the installation kit of application program The built-in resource file of hair, and obtain all to set the built-in resource file of format configuration in the installation kit of application program;Its In, built-in resource file is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Step S501, including:The built-in money that server RMS is issued by RMS interfaces is included in built-in resource bundle Source file, and with JSON formats configuration built-in resource file in the case of, in the installation kit for obtaining application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files issue, and obtain the peace of application program All built-in resource files configured with JSON formats in dress packet;Wherein, built-in resource file, which is application program, can not connect mutually The resource file of the setting page is presented in the case of networking.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, while the built-in resource file of other in the installation kit of application program is configured with JSON formats, therefore is obtained and answered The built-in resource file of the built-in resource file and all JSON formats that are stored in being pressed from both sides with profile in the installation kit of program, All built-in resource files in the installation kit of application program can accurately be obtained.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Step S502 detects the test data in all built-in resource files, and right successively by preset test case Each built-in resource file is tested, to obtain the error in data in built-in resource file.
Optionally, the mode of the test data in all built-in resource files is detected, including but not limited to:
The URL carried in each built-in resource file is filtered by preset regular expression, and judges to filter Whether obtained URL includes test mark;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
For example, the mode of the test data in all built-in resource files of detection, including:
The URL carried in each built-in resource file is filtered by preset regular expression;Wherein, canonical table Include but not limited to up to formula:Https&&http regular expressions, wbmain agreements regular expression and https&&http&& Wbmain regular expressions;And judge the URL being obtained by filtration whether comprising test mark;Wherein, test mark includes but unlimited In:The tests such as apptest and/or pmalltest identify;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
Optionally, each built-in resource file is tested successively by preset test case, including:
Test case is called to test successively each built-in resource file by preset test frame.
For example, each built-in resource file is tested successively by preset test case, including:By preset TestNg test frames call test case to test successively each built-in resource file.
Optionally, each built-in resource file is tested successively by preset test case, including:
Include in test case:In the case of testing input data and test benchmark data, each built-in resource text is judged Whether part is matched based on the test result data that test input data obtains with test benchmark data;If test result data and survey Reference data matching is tried, then judges that there are error in data for each built-in resource file;Otherwise judge each built-in resource file not There are error in data.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Test data and error in data in all built-in resource files are presented by test report by step S503.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test method described in fifth embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Test device provided in an embodiment of the present invention, for realizing in internet application built-in resource file from Dynamic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application, existing to solve The problem that built-in resource file workload is excessive in internet application is tested by Test Engineer in technology.
Sixth embodiment of the invention, a kind of test device, as shown in fig. 6, including consisting of part:
Acquisition module 100, for obtaining the feelings that can not connect internet in application program in the installation kit of application program The built-in resource file of the setting page is presented under condition.
Optionally, acquisition module 100 are specifically used for:
The format of the installation kit of application program is converted;
It is obtained in the installation kit of application program after the format conversion in the case where application program can not connect internet The built-in resource file of the setting page is presented.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Such as:Acquisition module 100 is converted specifically for the ipa formats of the installation kit to application program, is converted to Zip formats;It obtains in the installation kit of the application program of zip formats and is presented in the case where application program can not connect internet Set the built-in resource file of the page.
Test module 200 for detecting the test data in all built-in resource files, and passes through preset test case Each built-in resource file is tested successively, to obtain the error in data in built-in resource file.
In the present embodiment, include in following manner to the mode for detecting the test data in all built-in resource files One or more combination:
Mode one detects in each built-in resource file with the presence or absence of test mark;It is surveyed if existing in built-in resource file Test-object is known, then judges that there are test datas in built-in resource file;Otherwise judge that test data is not present in built-in resource file;
Mode two detects in each built-in resource file with the presence or absence of test URL (Uniform Resource Locator, uniform resource locator);If there is test URL in built-in resource file, judge exist in built-in resource file Test data;Otherwise judge that test data is not present in built-in resource file.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Reporting modules 300, for test data and data mistake in all built-in resource files to be presented by test report Accidentally.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test device described in sixth embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Seventh embodiment of the invention, a kind of test device, as shown in fig. 6, including consisting of part:
Acquisition module 100, for obtaining the feelings that can not connect internet in application program in the installation kit of application program The built-in resource file of the setting page is presented under condition.
Optionally, acquisition module 100 are specifically used for:
In the case where built-in resource bundle includes the built-in resource file that server is issued by setting interface, acquisition is answered The built-in resource file issued with the setting interface stored in profile folder in the installation kit of program;Wherein, built-in resource text Part is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Acquisition module 100, is specifically used for:Server RMS (Resource Manage are included in built-in resource bundle System, resource management system) in the case of the built-in resource file that issues by RMS interfaces, obtain the installation of application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files in packet issue;Wherein, built-in resource text Part is the resource file that the setting page is presented in the case that application program can not connect internet.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, therefore the built-in resource file stored in profile folder in the installation kit of application program is obtained, can accurately obtained Take built-in resource file in the installation kit of application program.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Test module 200 for detecting the test data in all built-in resource files, and passes through preset test case Each built-in resource file is tested successively, to obtain the error in data in built-in resource file.
In the present embodiment, include in following manner to the mode for detecting the test data in all built-in resource files One or more combination:
Mode one detects in each built-in resource file with the presence or absence of test mark;It is surveyed if existing in built-in resource file Test-object is known, then judges that there are test datas in built-in resource file;Otherwise judge that test data is not present in built-in resource file;
Mode two detects in each built-in resource file with the presence or absence of test URL;If there is test in built-in resource file URL then judges that there are test datas in built-in resource file;Otherwise judge that test data is not present in built-in resource file.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Reporting modules 300, for test data and data mistake in all built-in resource files to be presented by test report Accidentally.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test device described in seventh embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Eighth embodiment of the invention, a kind of test device, as shown in fig. 6, including consisting of part:
Acquisition module 100, for obtaining the feelings that can not connect internet in application program in the installation kit of application program The built-in resource file of the setting page is presented under condition.
Optionally, acquisition module 100 are specifically used for:
It is included in built-in resource bundle:The built-in resource file that server is issued by setting interface, and to set format In the case of the built-in resource file of configuration, obtain under the setting interface stored in profile folder in the installation kit of application program The built-in resource file of hair, and obtain all to set the built-in resource file of format configuration in the installation kit of application program;Its In, built-in resource file is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Acquisition module 100, specifically for including what server RMS was issued by RMS interfaces in built-in resource bundle Built-in resource file, and with JSON formats configuration built-in resource file in the case of, in the installation kit for obtaining application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files issue, and obtain the peace of application program All built-in resource files configured with JSON formats in dress packet;Wherein, built-in resource file, which is application program, can not connect mutually The resource file of the setting page is presented in the case of networking.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, while the built-in resource file of other in the installation kit of application program is configured with JSON formats, therefore is obtained and answered The built-in resource file of the built-in resource file and all JSON formats that are stored in being pressed from both sides with profile in the installation kit of program, All built-in resource files in the installation kit of application program can accurately be obtained.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Test module 200 for detecting the test data in all built-in resource files, and passes through preset test case Each built-in resource file is tested successively, to obtain the error in data in built-in resource file.
Optionally, the mode of the test data in all built-in resource files is detected, including but not limited to:
The URL carried in each built-in resource file is filtered by preset regular expression, and judges to filter Whether obtained URL includes test mark;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
For example, the mode of the test data in all built-in resource files of detection, including:
The URL carried in each built-in resource file is filtered by preset regular expression;Wherein, canonical table Include but not limited to up to formula:Https&&http regular expressions, wbmain agreements regular expression and https&&http&& Wbmain regular expressions;And judge the URL being obtained by filtration whether comprising test mark;Wherein, test mark includes but unlimited In:The tests such as apptest and/or pmalltest identify;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Reporting modules 300, for test data and data mistake in all built-in resource files to be presented by test report Accidentally.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test device described in eighth embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Ninth embodiment of the invention, a kind of test device, as shown in fig. 6, including consisting of part:
Acquisition module 100, for obtaining the feelings that can not connect internet in application program in the installation kit of application program The built-in resource file of the setting page is presented under condition.
Optionally, acquisition module 100 are specifically used for:
It is included in built-in resource bundle:The built-in resource file that server is issued by setting interface, and to set format In the case of the built-in resource file of configuration, obtain under the setting interface stored in profile folder in the installation kit of application program The built-in resource file of hair, and obtain all to set the built-in resource file of format configuration in the installation kit of application program;Its In, built-in resource file is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Acquisition module 100, is specifically used for:Server RMS is included in built-in resource bundle to issue by RMS interfaces Built-in resource file, and with JSON formats configuration built-in resource file in the case of, in the installation kit for obtaining application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files issue, and obtain the peace of application program All built-in resource files configured with JSON formats in dress packet;Wherein, built-in resource file, which is application program, can not connect mutually The resource file of the setting page is presented in the case of networking.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, while the built-in resource file of other in the installation kit of application program is configured with JSON formats, therefore is obtained and answered The built-in resource file of the built-in resource file and all JSON formats that are stored in being pressed from both sides with profile in the installation kit of program, All built-in resource files in the installation kit of application program can accurately be obtained.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Test module 200 for detecting the test data in all built-in resource files, and passes through preset test case Each built-in resource file is tested successively, to obtain the error in data in built-in resource file.
Optionally, the mode of the test data in all built-in resource files is detected, including but not limited to:
The URL carried in each built-in resource file is filtered by preset regular expression, and judges to filter Whether obtained URL includes test mark;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
For example, the mode of the test data in all built-in resource files of detection, including:
The URL carried in each built-in resource file is filtered by preset regular expression;Wherein, canonical table Include but not limited to up to formula:Https&&http regular expressions, wbmain agreements regular expression and https&&http&& Wbmain regular expressions;And judge the URL being obtained by filtration whether comprising test mark;Wherein, test mark includes but unlimited In:The tests such as apptest and/or pmalltest identify;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
Optionally, each built-in resource file is tested successively by preset test case, including:
Test case is called to test successively each built-in resource file by preset test frame.
For example, each built-in resource file is tested successively by preset test case, including:By preset TestNg test frames call test case to test successively each built-in resource file.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Reporting modules 300, for test data and data mistake in all built-in resource files to be presented by test report Accidentally.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test device described in ninth embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Tenth embodiment of the invention, a kind of test device, as shown in fig. 6, including consisting of part:
Acquisition module 100, for obtaining the feelings that can not connect internet in application program in the installation kit of application program The built-in resource file of the setting page is presented under condition.
Optionally, acquisition module 100 are specifically used for:
It is included in built-in resource bundle:The built-in resource file that server is issued by setting interface, and to set format In the case of the built-in resource file of configuration, obtain under the setting interface stored in profile folder in the installation kit of application program The built-in resource file of hair, and obtain all to set the built-in resource file of format configuration in the installation kit of application program;Its In, built-in resource file is the resource file that the setting page is presented in the case that application program can not connect internet.
Such as:Acquisition module 100, is specifically used for:Server RMS is included in built-in resource bundle to issue by RMS interfaces Built-in resource file, and with JSON formats configuration built-in resource file in the case of, in the installation kit for obtaining application program The built-in resource file that the RMS interfaces stored in builtinData.bundle files issue, and obtain the peace of application program All built-in resource files configured with JSON formats in dress packet;Wherein, built-in resource file, which is application program, can not connect mutually The resource file of the setting page is presented in the case of networking.
In the application, it is corresponding preset to there is setting interface in the built-in resource file that the setting interface of server issues In file, while the built-in resource file of other in the installation kit of application program is configured with JSON formats, therefore is obtained and answered The built-in resource file of the built-in resource file and all JSON formats that are stored in being pressed from both sides with profile in the installation kit of program, All built-in resource files in the installation kit of application program can accurately be obtained.
In the present embodiment, built-in resource file includes but is not limited to:Icon redirects URL, title, picture, audio and regards The asset data informations such as frequency.
In the present embodiment, the quantity of built-in resource file is one or more.
Test module 200 for detecting the test data in all built-in resource files, and passes through preset test case Each built-in resource file is tested successively, to obtain the error in data in built-in resource file.
Optionally, the mode of the test data in all built-in resource files is detected, including but not limited to:
The URL carried in each built-in resource file is filtered by preset regular expression, and judges to filter Whether obtained URL includes test mark;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
For example, the mode of the test data in all built-in resource files of detection, including:
The URL carried in each built-in resource file is filtered by preset regular expression;Wherein, canonical table Include but not limited to up to formula:Https&&http regular expressions, wbmain agreements regular expression and https&&http&& Wbmain regular expressions;And judge the URL being obtained by filtration whether comprising test mark;Wherein, test mark includes but unlimited In:The tests such as apptest and/or pmalltest identify;
It is identified if URL includes test, judges that the built-in resource file for carrying URL carries test data;Otherwise judgement is taken Built-in resource file with URL does not carry test data.
Optionally, each built-in resource file is tested successively by preset test case, including:
Test case is called to test successively each built-in resource file by preset test frame.
For example, each built-in resource file is tested successively by preset test case, including:By preset TestNg test frames call test case to test successively each built-in resource file.
Optionally, each built-in resource file is tested successively by preset test case, including:
Include in test case:In the case of testing input data and test benchmark data, each built-in resource text is judged Whether part is matched based on the test result data that test input data obtains with test benchmark data;If test result data and survey Reference data matching is tried, then judges that there are error in data for each built-in resource file;Otherwise judge each built-in resource file not There are error in data.
Each built-in resource file is tested by independently arranged test case, to obtain in built-in resource file Error in data, efficiently avoid in built-in resource file be arranged test case caused by built-in resource file redundancy; The testing efficiency for improving application program simultaneously is avoided to being respectively provided with test in each built-in resource file in application program The repeated work of use-case, effectively increases testing efficiency.
Usually in the application in the development process of built-in resource file, research and development engineer can be in built-in resource file Whether the function that built-in resource file is verified by way of test data is arranged is normal, but in the installation kit of application issued In, if not setting the test data in built-in resource file to formally to issue data, application program can be caused by user Improper display after being installed in terminal seriously affects the user experience that user uses internet application.
In the present embodiment, by way of to being tested successively each built-in resource file preset test case It is not specifically limited, can be the multiple test cases being arranged according to the engineering experience of Test Engineer, pass through each survey respectively Example on probation successively tests each built-in resource file, to obtain the error in data in built-in resource file.
In the present embodiment, the quantity of test case is one or more.
Reporting modules 300, for test data and data mistake in all built-in resource files to be presented by test report Accidentally.
Test data and error in data in all built-in resource files is presented by test report, can effectively help Developmental Engineer, in built-in resource file test data and error in data positioned and corrected, improve application program Development efficiency.
Test device described in tenth embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
Eleventh embodiment of the invention, a kind of test equipment, as shown in fig. 7, comprises consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other manner connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU), it can also be digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (English: Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention One or more integrated circuits.Wherein, memory 502 is used to store the executable instruction of the processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 502 can also include nonvolatile memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that the memory 502 to be called to store, executes the present invention In first embodiment to fifth embodiment of the invention in any embodiment part or Overall Steps.
Test equipment described in eleventh embodiment of the invention is realized to built-in resource file in internet application Automatic test, effectively increase the measuring accuracy and testing efficiency of built-in resource file in internet application.
Twelveth embodiment of the invention, a kind of computer readable storage medium.
Computer storage media can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storages The storage medium of device, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art.
Computer-readable recording medium storage there are one or multiple programs, one or more program can by one or The multiple processors of person execute, with realize in first embodiment of the invention to fifth embodiment of the invention in any embodiment part or Overall Steps.
Computer readable storage medium described in twelveth embodiment of the invention is stored with one or more program, should One or more program can be executed by one or more processor, can be realized to built-in resource in internet application The automatic test of file effectively increases the measuring accuracy and testing efficiency of built-in resource file in internet application.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (12)

1. a kind of test method, which is characterized in that including:
It is obtained in the installation kit of application program and the setting page is presented in the case where the application program can not connect internet Built-in resource file;
The test data in all built-in resource files is detected, and by preset test case successively to each described interior It sets resource file to be tested, to obtain the error in data in the built-in resource file;
The test data and error in data in all built-in resource files are presented by test report.
2. according to the method described in claim 1, it is characterized in that, the built-in resource file includes that server is connect by setting The built-in resource file that mouth issues;
Setting is presented in the case where the application program can not connect internet for described obtained in the installation kit of application program The built-in resource file of the page, including:
Obtain the built-in resource text that the setting interface stored in profile folder in the installation kit of the application program issues Part.
3. according to the method described in claim 2, it is characterized in that, the built-in resource file further includes to set format configuration Built-in resource file;
Test data in all built-in resource files of detection, including:
The uniform resource position mark URL carried in each built-in resource file was carried out by preset regular expression Filter, and judge the URL being obtained by filtration whether comprising test mark;
It is identified if the URL includes test, judges that the built-in resource file for carrying the URL carries test data;
Otherwise the built-in resource file of the judgement carrying URL does not carry test data.
4. according to the method described in claim 3, it is characterized in that, it is described by preset test case successively to each described Built-in resource file is tested, including:
The test case is called to test successively each built-in resource file by preset test frame.
5. method according to claim 1 to 4, which is characterized in that the test case includes:Test input Data and test benchmark data;
It is described that each built-in resource file is tested successively by preset test case, including:
Judge that each built-in resource file tests the test result data and the test benchmark that input data obtains based on described Whether data match;
If the test result data and the test benchmark Data Matching, judge that there are numbers for each built-in resource file According to mistake;
Otherwise judge that error in data is not present in each built-in resource file.
6. a kind of test device, which is characterized in that including:
Acquisition module, for being obtained in the installation kit of application program in the case where the application program can not connect internet The built-in resource file of the setting page is presented;
Test module, for detecting the test data in all built-in resource files, and by preset test case according to It is secondary that each built-in resource file is tested, to obtain the error in data in the built-in resource file;
Reporting modules, for test data and error in data in all built-in resource files to be presented by test report.
7. device according to claim 6, which is characterized in that the built-in resource file includes that server is connect by setting The built-in resource file that mouth issues;The acquisition module, is specifically used for:
Obtain the built-in resource text that the setting interface stored in profile folder in the installation kit of the application program issues Part.
8. device according to claim 7, which is characterized in that the built-in resource file further includes to set format configuration Built-in resource file;
Test data in all built-in resource files of detection, including:
The uniform resource position mark URL carried in each built-in resource file was carried out by preset regular expression Filter, and judge the URL being obtained by filtration whether comprising test mark;
It is identified if the URL includes test, judges that the built-in resource file for carrying the URL carries test data;
Otherwise the built-in resource file of the judgement carrying URL does not carry test data.
9. device according to claim 8, which is characterized in that it is described by preset test case successively to each described Built-in resource file is tested, including:
The test case is called to test successively each built-in resource file by preset test frame.
10. the device according to any one of claim 6 to 9, which is characterized in that the test case includes:It tests defeated Enter data and test benchmark data;
It is described that each built-in resource file is tested successively by preset test case, including:
Judge that each built-in resource file tests the test result data and the test benchmark that input data obtains based on described Whether data match;
If the test result data and the test benchmark Data Matching, judge that there are numbers for each built-in resource file According to mistake;
Otherwise judge that error in data is not present in each built-in resource file.
11. a kind of test equipment, which is characterized in that the test equipment includes processor and memory;
The processor is for executing the test program stored in memory, to realize according to any one of Claims 1 to 5 institute The step of test method stated.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple programs, one or more of programs can be executed by one or more processor, with realize according to claim 1~ The step of test method described in any one of 5.
CN201810520918.7A 2018-05-28 2018-05-28 Test method, device, equipment and computer readable storage medium Active CN108733571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810520918.7A CN108733571B (en) 2018-05-28 2018-05-28 Test method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810520918.7A CN108733571B (en) 2018-05-28 2018-05-28 Test method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108733571A true CN108733571A (en) 2018-11-02
CN108733571B CN108733571B (en) 2022-05-31

Family

ID=63935547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810520918.7A Active CN108733571B (en) 2018-05-28 2018-05-28 Test method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108733571B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739752A (en) * 2018-12-21 2019-05-10 北京城市网邻信息技术有限公司 Built-in resource testing method, apparatus, electronic equipment and readable storage medium storing program for executing
CN113448839A (en) * 2020-12-24 2021-09-28 北京新氧科技有限公司 Application program testing method, device, equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032706A1 (en) * 1999-12-23 2002-03-14 Jesse Perla Method and system for building internet-based applications
US20040153774A1 (en) * 2003-01-22 2004-08-05 Yael Gavish Generating standalone MIDlets from a testing harness
CN101937346A (en) * 2009-07-01 2011-01-05 英业达股份有限公司 Method for executing application program through snapshot function and electronic device thereof
CN102165445A (en) * 2008-09-26 2011-08-24 微软公司 Data-tier application component
CN103685228A (en) * 2013-10-12 2014-03-26 北京奇虎科技有限公司 Website vulnerability rapid scanning method and device
US20150031332A1 (en) * 2013-02-22 2015-01-29 Websense, Inc. Network and data security testing with mobile devices
CN106127458A (en) * 2016-07-18 2016-11-16 青岛海信电器股份有限公司 The sending method of a kind of Email and device
CN106354649A (en) * 2016-09-18 2017-01-25 郑州云海信息技术有限公司 Layered script design method for automated testing of webpages
CN106547689A (en) * 2016-10-20 2017-03-29 金航数码科技有限责任公司 A kind of automatic test cases development system and method based on web
CN107436843A (en) * 2016-05-27 2017-12-05 北京京东尚科信息技术有限公司 Webpage performance test methods and device
US9928059B1 (en) * 2014-12-19 2018-03-27 Amazon Technologies, Inc. Automated deployment of a multi-version application in a network-based computing environment
CN107943372A (en) * 2017-11-29 2018-04-20 努比亚技术有限公司 A kind of interface display method, device and computer-readable recording medium
CN107992291A (en) * 2017-11-16 2018-05-04 上海南潮信息科技有限公司 Ruff OS Internet of Things operating systems applied to built-in application program

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032706A1 (en) * 1999-12-23 2002-03-14 Jesse Perla Method and system for building internet-based applications
US20040153774A1 (en) * 2003-01-22 2004-08-05 Yael Gavish Generating standalone MIDlets from a testing harness
CN102165445A (en) * 2008-09-26 2011-08-24 微软公司 Data-tier application component
CN101937346A (en) * 2009-07-01 2011-01-05 英业达股份有限公司 Method for executing application program through snapshot function and electronic device thereof
US20150031332A1 (en) * 2013-02-22 2015-01-29 Websense, Inc. Network and data security testing with mobile devices
CN103685228A (en) * 2013-10-12 2014-03-26 北京奇虎科技有限公司 Website vulnerability rapid scanning method and device
US9928059B1 (en) * 2014-12-19 2018-03-27 Amazon Technologies, Inc. Automated deployment of a multi-version application in a network-based computing environment
CN107436843A (en) * 2016-05-27 2017-12-05 北京京东尚科信息技术有限公司 Webpage performance test methods and device
CN106127458A (en) * 2016-07-18 2016-11-16 青岛海信电器股份有限公司 The sending method of a kind of Email and device
CN106354649A (en) * 2016-09-18 2017-01-25 郑州云海信息技术有限公司 Layered script design method for automated testing of webpages
CN106547689A (en) * 2016-10-20 2017-03-29 金航数码科技有限责任公司 A kind of automatic test cases development system and method based on web
CN107992291A (en) * 2017-11-16 2018-05-04 上海南潮信息科技有限公司 Ruff OS Internet of Things operating systems applied to built-in application program
CN107943372A (en) * 2017-11-29 2018-04-20 努比亚技术有限公司 A kind of interface display method, device and computer-readable recording medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ARILD BERGH: "The Final Destination: Building Test Bed Apps for DIL Environments", 《2015 IEEE 81ST VEHICULAR TECHNOLOGY CONFERENCE (VTC SPRING)》 *
胡航川: "内网安全系统中网络访问与连接控制技术的研究与应用", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739752A (en) * 2018-12-21 2019-05-10 北京城市网邻信息技术有限公司 Built-in resource testing method, apparatus, electronic equipment and readable storage medium storing program for executing
CN113448839A (en) * 2020-12-24 2021-09-28 北京新氧科技有限公司 Application program testing method, device, equipment and storage medium
CN113448839B (en) * 2020-12-24 2024-01-26 北京新氧科技有限公司 Application program testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108733571B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN110213068B (en) Message middleware monitoring method and related equipment
KR101835303B1 (en) Systems and methods for collecting, tracking, and storing system performance and event data for computing devices
US9424221B2 (en) Automated cabling process for a complex environment
CN106326067B (en) A kind of method and device that cpu performance is monitored under pressure test
CN109062809A (en) Method for generating test case, device and electronic equipment on a kind of line
CN104202201B (en) A kind of log processing method, device and terminal
US20150286478A1 (en) Application Version Release Management
CN106354634A (en) Interface testing method and device
JPWO2013111560A1 (en) Operation management apparatus, operation management method, and program
CN108733571A (en) A kind of test method, device, equipment and computer readable storage medium
CN108228361A (en) A kind of information push method, terminal and computer readable storage medium
WO2016197737A1 (en) Self-check processing method, apparatus and system
CN103799997A (en) Physiological monitoring parameter recording method and system based on image recognition
CN110493085A (en) Statistical method, system, electronic equipment and the medium of IPv6 active users
CN109743693A (en) Information recommendation method, device and storage medium
CN106802898B (en) Data entry method and device
CN105204982A (en) Code testing method and code testing system
CN108228451A (en) A kind of information push method, equipment and computer readable storage medium
CN106358220A (en) Detection method of abnormal contact person information, device and system
CN106933858B (en) Page source statistical method and view controller
JP2011145824A (en) Information processing apparatus, fault analysis method, and fault analysis program
CN109495190B (en) Envelope compression point determination method and related equipment
CN105653383A (en) Error tolerance processing method and apparatus for data
Raj et al. Smartphone sensing for large data set collection of potholes
CN108200586B (en) Method and system for mobile network aware data association

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