CN108984401A - A kind of solution decoupling detecting method - Google Patents
A kind of solution decoupling detecting method Download PDFInfo
- Publication number
- CN108984401A CN108984401A CN201810727758.3A CN201810727758A CN108984401A CN 108984401 A CN108984401 A CN 108984401A CN 201810727758 A CN201810727758 A CN 201810727758A CN 108984401 A CN108984401 A CN 108984401A
- Authority
- CN
- China
- Prior art keywords
- test
- decoupling
- file
- tester
- result
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
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)
- Debugging And Monitoring (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of solution decoupling detecting methods, start to test, and tester backs up decoupling test environment data base;Tester runs Mayday in decoupling test environment;Generate original test file;Browser downloads test result file automatically;By original test file and DB Backup;Two databases are reverted in double test environment of writing according to database backup file;Test file is uploaded into automated test tool;Automated test tool accesses different services according to test case;Return to PHP service result and JAVA service result;Automatic test program is compared to returning the result;It obtains result difference and destination file is recorded;Browser downloads test result file automatically;Test result file is delivered into each decoupling project team.The beneficial effects of the invention are as follows artificial control is reduced, testing efficiency is improved.
Description
Technical field
The invention belongs to field of computer technology, are related to a kind of solution decoupling detecting method.
Background technique
Currently, multiple exploitation environment are generally arranged in enterprise in software development process, each environment is independent of one another, does not do mutually
It disturbs, to facilitate different departmental staff's test programs.Each environment is configured in Intranet using different machines, after service arrangement,
Service can be called according to the IP address and port numbers of different machines.
By taking a certain enterprise as an example, a total of 4 set of environments of enterprise, respectively exploitation environment, test environment, sandbox environment and
Environment on line.It develops environment and is used for developer's commissioning test program, after program debugging is run successfully, first by developer to journey
Sequence is tested, and after program test passes through, is deployed to test environment;Test environment is mainly used by tester, tester
The test for carrying out function, performance, service logic etc. to program in the environment, after program test passes through, is generally deployed to
Environment commencement of commercial operation on line;For having the application docked with other companies, carry out docking debugging with other companies in sandbox environment.
In order to facilitate the use of the project of decoupling, interim increase decoupling test environment writes test environment with double, decouples test environment for solving
The test of coupling project, double service logics for writing environment for new and old service compare, and the one-man within the same period
It uses, can guarantee the exclusivity that environment uses in this way, reduce test error.
Summary of the invention
The purpose of the present invention is to provide a kind of solution decoupling detecting methods, and the beneficial effects of the invention are as follows can reduce tester
Member's plenty of time reduces test errors, realizes more automations, reduces artificial control, improves testing efficiency.
The technical scheme adopted by the invention is that following the steps below:
(1) start to test, tester backs up decoupling test environment data base;
(2) tester runs Mayday in decoupling test environment;
(3) original test file is generated;
(4) browser downloads test result file automatically;
(5) tester gives original test file and DB Backup to decoupling tester;
(6) decoupling tester reverts to two databases in double test environment of writing according to database backup file;
(7) test file is uploaded to automated test tool by decoupling tester;
(8) automated test tool accesses different services according to test case;
(9) PHP service result and JAVA service result are returned;
(10) automatic test program is compared to returning the result;
(11) result difference is obtained;
(12) destination file is recorded in difference;
(13) browser downloads test result file automatically;
(14) test result file is delivered each decoupling project team by decoupling tester;
(15) terminate test.
Further,
(1) database of decoupling test environment is backed up by tester first, then tester tests environment in decoupling
Mayday is run, test file is generated;
(2) tester gives DB Backup script and test file to decoupling tester, decouples tester's root
According to DB Backup script in double environment restorations of writing for 2 databases, an entitled jifenpay, an entitled jifenpay_
Java, jifenpay are accessed by PHP routine access, jifenpay_java by java applet;
(3) decoupling tester uploads test file using automated test tool, and automated test tool executes test
Use-case generates test result file, and test report is delivered each project team by decoupling tester.
Further,
(1) tester's backup database is used and is such as issued orders:
mysqldump-uamy-p1qazxsw@-h 10.101.9.223–lock-all-tables–set-gtid-
Purged=off jifenpay > jifenpay_test_201712200220.sql;
(2) test cases execute twice, and Force-New request header is not added for the first time, second of addition Force-New
Request header, the old service of request primary in this way, once requests new demand servicing, is then compared to service returns results twice;
(3) described pair, which is write two databases of environment, is restored using same backup script, their initial state is complete
It is complete consistent;
(4) one test case of the every execution of automated test tool, can be according to use-case type to service returns results or number
It is compared according to library, after all use-cases execute completion, test result file will be downloaded by browser automatically;
(5) in actual use, test case is to inquire class and change class and classify, and an Excel is surveyed
Example text part on probation, is divided into two sheet, and one is r, and one is w, respectively indicates inquiry class and change class, and inquires class survey
Example on probation comes before change class testing use-case, guarantees first operation inquiry class testing use-case in this way, reruns and change class testing use
Example;
(6) after test file uploads to automatization test system, the encapsulation of data, the every a line of test case are carried out by system
It is encapsulated as a List object, attribute therein is packaged with attribute value using ExcelParam class;It is being based on each Sheet
After packaged all test cases, program traverses each List, the url in acquisition test case, required parameter, so
Each service is accessed using HttpclientHelper afterwards.
Detailed description of the invention
Fig. 1 is present invention decoupling testing process schematic diagram;
Fig. 2 is actual test file structure figure;
Fig. 3 is the class figure of ExcelParam.
Specific embodiment
The present invention is described in detail With reference to embodiment.
A kind of solution decoupling detecting method of the present invention, entire test process mainly by tester, decouple tester, Ge Gexiang
Mesh group personnel participate in jointly.Entire test process is divided into following several stages:
(1) database of decoupling test environment is backed up by tester first, then tester tests environment in decoupling
Mayday is run, test file is generated.
(2) tester gives DB Backup script and test file to decoupling tester.Decouple tester's root
According to DB Backup script in double environment restorations of writing for 2 databases, an entitled jifenpay, an entitled jifenpay_
Java, jifenpay are accessed by PHP routine access, jifenpay_java by java applet.
(3) decoupling tester uploads test file using automated test tool, and automated test tool executes test
Use-case generates test result file, and test report is delivered each project team by decoupling tester.
Entire testing process is as shown in Figure 1:
(1) tester's backup database is used and is such as issued orders:
mysqldump-uamy-p1qazxsw@-h 10.101.9.223–lock-all-tables–set-gtid-
Purged=off jifenpay > jifenpay_test_201712200220.sql
(2) data comparison, automated test tool are executed in the case where service call switch is set as 1 for convenience
Every test case, a test case executes twice, and Force-New request header is not added for the first time, adds for second
Force-New request header, the old service of request primary in this way, once requests new demand servicing, then carries out to service returns results twice
Compare.
(3) double two databases for writing environment are restored using same backup script, their initial state complete one
It causes.
(4) one test case of the every execution of automated test tool, can be according to use-case type to service returns results or number
It is compared according to library, after all use-cases execute completion, test result file will be downloaded by browser automatically.
(5) in actual use, test case is to inquire class and change class and classify, and an Excel is surveyed
Example text part on probation, is generally divided into two sheet, and one is r, and one is w, respectively indicates inquiry class and change class, and inquire
Class testing use-case comes before change class testing use-case, guarantees first operation inquiry class testing use-case in this way, reruns and change class survey
Example on probation, because change class testing has an impact two databases with regular meeting, it is possible to cause database inconsistent, to inquiry
As a result it has an impact, and first running inquiry class testing use-case then can be to avoid this problem.Actual test file structure such as Fig. 2 institute
Show:
(6) after test file uploads to automatization test system, the encapsulation of data, the every a line of test case are carried out by system
It is encapsulated as a List object, attribute therein is packaged with attribute value using ExcelParam class, the class of ExcelParam
Figure is as shown in figure 3, wherein key indicates that Property Name, value indicate attribute value.Based on the packaged all surveys of each Sheet
After example on probation, program traverses each List, obtains the url in test case, then required parameter uses
HttpclientHelper accesses each service.
The above is only not to make limit in any form to the present invention to better embodiment of the invention
System, any simple modification that embodiment of above is made according to the technical essence of the invention, equivalent variations and modification,
Belong in the range of technical solution of the present invention.
Claims (3)
1. a kind of solution decoupling detecting method, it is characterised in that follow the steps below:
(1) start to test, tester backs up decoupling test environment data base;
(2) tester runs Mayday in decoupling test environment;
(3) original test file is generated;
(4) browser downloads test result file automatically;
(5) tester gives original test file and DB Backup to decoupling tester;
(6) decoupling tester reverts to two databases in double test environment of writing according to database backup file;
(7) test file is uploaded to automated test tool by decoupling tester;
(8) automated test tool accesses different services according to test case;
(9) PHP service result and JAVA service result are returned;
(10) automatic test program is compared to returning the result;
(11) result difference is obtained;
(12) destination file is recorded in difference;
(13) browser downloads test result file automatically;
(14) test result file is delivered each decoupling project team by decoupling tester;
(15) terminate test.
2. according to a kind of solution decoupling detecting method described in claim 1, it is characterised in that:
(1) database of decoupling test environment is backed up by tester first, then tester is in decoupling test environment operation
Mayday generates test file;
(2) tester gives DB Backup script and test file to decoupling tester, decouples tester according to number
According to library backup script in double environment restorations of writing for 2 databases, an entitled jifenpay, an entitled jifenpay_java,
Jifenpay is accessed by PHP routine access, jifenpay_java by java applet;
(3) decoupling tester using automated test tool upload test file, automated test tool implementation of test cases,
Test result file is generated, test report is delivered into each project team by decoupling tester.
3. according to a kind of solution decoupling detecting method described in claim 1, it is characterised in that:
(1) tester's backup database is used and is such as issued orders:
Mysqldump-uamy-p1qazxsw@- h 10.101.9.223-lock-all-tables-set-gtid-purged=
off jifenpay>jifenpay_test_201712200220.sql;
(2) test cases execute twice, and Force-New request header is not added for the first time, second of addition Force-New request
Head, the old service of request primary in this way, once requests new demand servicing, is then compared to service returns results twice;
(3) described pair, which is write two databases of environment, is restored using same backup script, their initial state complete one
It causes;
(4) one test case of the every execution of automated test tool, can be according to use-case type to service returns results or database
It is compared, after all use-cases execute completion, test result file will be downloaded by browser automatically;
(5) in actual use, test case is to inquire class and change class and classify, and an Excel test is used
Example text part is divided into two sheet, and one is r, and one is w, respectively indicates inquiry class and change class, and inquires class testing use
Example comes before change class testing use-case, guarantees first operation inquiry class testing use-case in this way, reruns and change class testing use-case;
(6) after test file uploads to automatization test system, the encapsulation of data, the every a line encapsulation of test case are carried out by system
For a List object, attribute therein is packaged with attribute value using ExcelParam class;It is encapsulated based on each Sheet
After good all test cases, program traverses each List, obtains the url in test case, then required parameter makes
Each service is accessed with HttpclientHelper.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810727758.3A CN108984401A (en) | 2018-07-05 | 2018-07-05 | A kind of solution decoupling detecting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810727758.3A CN108984401A (en) | 2018-07-05 | 2018-07-05 | A kind of solution decoupling detecting method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984401A true CN108984401A (en) | 2018-12-11 |
Family
ID=64537034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810727758.3A Pending CN108984401A (en) | 2018-07-05 | 2018-07-05 | A kind of solution decoupling detecting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984401A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471846A (en) * | 2019-07-23 | 2019-11-19 | 平安科技(深圳)有限公司 | Test data processing method, device and computer equipment based on automation platform |
CN112948255A (en) * | 2021-03-23 | 2021-06-11 | 北京鸿腾智能科技有限公司 | Distributed kernel fuzzing test system and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106326109A (en) * | 2016-08-09 | 2017-01-11 | 北京金山安全软件有限公司 | New application testing method and device |
US20180089072A1 (en) * | 2016-09-23 | 2018-03-29 | International Business Machines Corporation | Automated testing of application program interface |
CN108170453A (en) * | 2018-01-17 | 2018-06-15 | 中国平安人寿保险股份有限公司 | A kind of MIT method for upgrading system, storage medium and terminal device |
-
2018
- 2018-07-05 CN CN201810727758.3A patent/CN108984401A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106326109A (en) * | 2016-08-09 | 2017-01-11 | 北京金山安全软件有限公司 | New application testing method and device |
US20180089072A1 (en) * | 2016-09-23 | 2018-03-29 | International Business Machines Corporation | Automated testing of application program interface |
CN108170453A (en) * | 2018-01-17 | 2018-06-15 | 中国平安人寿保险股份有限公司 | A kind of MIT method for upgrading system, storage medium and terminal device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471846A (en) * | 2019-07-23 | 2019-11-19 | 平安科技(深圳)有限公司 | Test data processing method, device and computer equipment based on automation platform |
CN110471846B (en) * | 2019-07-23 | 2024-05-07 | 平安科技(深圳)有限公司 | Test data processing method and device based on automation platform and computer equipment |
CN112948255A (en) * | 2021-03-23 | 2021-06-11 | 北京鸿腾智能科技有限公司 | Distributed kernel fuzzing test system and method |
CN112948255B (en) * | 2021-03-23 | 2024-05-14 | 三六零数字安全科技集团有限公司 | Distributed kernel fuzzy test system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110309071B (en) | Test code generation method and module, and test method and system | |
US7917895B2 (en) | Automated software testing and validation system | |
US7278056B2 (en) | Methods, systems, and media for management of functional verification | |
CN103164328B (en) | The regression testing method of a kind of business function, Apparatus and system | |
US8150674B2 (en) | Automated testing platform for event driven systems | |
CN111367886A (en) | Method and device for data migration in database | |
EP2572294B1 (en) | System and method for sql performance assurance services | |
CN104407971A (en) | Method for automatically testing embedded software | |
US20080065687A1 (en) | Methods, Systems, and Media for Generating a Regression Suite Database | |
CN108268377A (en) | A kind of service test method of server, device and medium | |
CN107608902A (en) | Routine interface method of testing and device | |
CN103646104A (en) | Hard real-time fault diagnosis method and system | |
Panigrahi et al. | An approach to prioritize the regression test cases of object-oriented programs | |
CN103678116A (en) | Method and system for facilitating automated program testing | |
Xu et al. | Detecting cloud provisioning errors using an annotated process model | |
CN108984401A (en) | A kind of solution decoupling detecting method | |
CN109558328A (en) | A kind of test method of code coverage, system, device and readable storage medium storing program for executing | |
CN103455672B (en) | A kind of FPGA emulation testing use-case automatization homing method | |
US11132286B1 (en) | Dynamic reordering of test case execution | |
Liu et al. | Autonomic self-testing of regression and internationalization based on cloud computing | |
CN117234946B (en) | Automatic test method and related equipment for project library system | |
Baek et al. | RSX: Reproduction scenario extraction technique for business application workloads in DBMS | |
Xu et al. | Fault Injection based Failure Analysis of CentOS, Anolis OS and OpenEuler | |
Liu et al. | Big Data-based Testing: Characteristics, Challenges, and Future Directions | |
Poston | Testing tools combine best of new and old |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181211 |
|
RJ01 | Rejection of invention patent application after publication |