CN109240926A - A kind of software compatibility system safety testing device and method - Google Patents

A kind of software compatibility system safety testing device and method Download PDF

Info

Publication number
CN109240926A
CN109240926A CN201811038595.4A CN201811038595A CN109240926A CN 109240926 A CN109240926 A CN 109240926A CN 201811038595 A CN201811038595 A CN 201811038595A CN 109240926 A CN109240926 A CN 109240926A
Authority
CN
China
Prior art keywords
test
xml document
software compatibility
converted
data
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
Application number
CN201811038595.4A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811038595.4A priority Critical patent/CN109240926A/en
Publication of CN109240926A publication Critical patent/CN109240926A/en
Pending legal-status Critical Current

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

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)

Abstract

The present invention discloses a kind of software compatibility system safety testing device and method, records all business operation data and forms databases;Generated database table is read, and is converted into xml document;Using xml document generated as input data, software compatibility test is carried out using TestNG test frame;The problems in the property of would be compatible with test process is summarized and is shown.The invention avoids tester's repeated authentication major browsers, hence it is evident that improves testing efficiency.

Description

A kind of software compatibility system safety testing device and method
Technical field
The present invention relates to software test fields, and in particular to a kind of software compatibility system safety testing device and method.
Background technique
In current software test field, compatibility test is an indispensable test job.It is now popular There are two types of test methods.One is manual test, but manual test heavy workload, and cover incomplete.It is simultaneous one is using The test of capacitive testing tool, although can reduce the workload of manual test, does not stress on main flow and the function of tonic chord Point is difficult to find some hiding problems.And for product quality, as far as possible discovery system problem, present test job Still mainly based on manual test, but working efficiency is too low.By taking browser software as an example, often tester needs to test one Kind browser followed by tests another browser.So the present invention provides a kind of device for testing compatibility for improving testing efficiency And method.
Summary of the invention
To solve the above problems, the present invention provide a kind of software compatibility automatic testing equipment that testing efficiency can be improved and Method.
The technical scheme is that a kind of software compatibility system safety testing device, comprising:
Business operation data recordin module: database is formed for recording all business operation data;
Data conversion module: for reading generated database table, and it is converted into xml document;
Compatibility test module: using xml document generated as input data, the multi-thread of TestNG test frame is utilized Cheng Fangfa carries out software compatibility test;
Problem log module: the problems in the property of would be compatible with test process is summarized and is shown.
Further,
All business operation data that business operation data recordin module is recorded include normal stream and abnormal fluxion According to.
Further,
Database table is converted into xml document by the jar packet class WriteXmlFile of Java by data conversion module.
Further,
Database table is converted into the transformation rule of xml document are as follows: using the keyword of record as attribute of an element, other Information is as node.
Further,
Compatibility test module is also used for DOM4J parsing Packet analyzing xml document, and the list parsed is converted to Object [] [] categorical data, carries out test use for TestNG test frame.
Further,
Running log is placed in report using the Reporter.log method in TestNG and is in by problem log module It is existing.
The present invention also provides a kind of software compatibility test methods, comprising the following steps:
It records all business operation data and forms database;
Generated database table is read, and is converted into xml document;
Using xml document generated as input data, software compatibility test is carried out using TestNG test frame;
The problems in the property of would be compatible with test process is summarized and is shown.
Further,
All business operation data recorded include normal stream and abnormal flow data.
Further, generated database table is read, and is converted into xml document and includes:
Database table is converted into xml document by the jar packet class WriteXmlFile of Java;
Database table is converted into the transformation rule of xml document are as follows: using the keyword of record as attribute of an element, other Information is as node.
Further,
As input data, carry out software compatibility test using TestNG test frame includes: xml document generated
Packet analyzing xml document is parsed using DOM4J, the list parsed is converted into Object [] [] categorical data, is supplied TestNG test frame carries out test use;
The problems in the property of would be compatible with test process is summarized and is shown
Using the Reporter.log method in TestNG, running log is placed in report and is presented.
Software compatibility system safety testing device provided by the invention and method, can be improved compatibility test efficiency, in tester When member tests a certain operation flow, business operation data record records operation data.Data conversion module converts data to Xml document is input to compatibility test module, by the multi-threading of TestNG, calls some major browsers, utilizes number Concurrent testing is carried out on these major browsers according to driving method.It tests at interruption, records problem.Avoid tester's weight Review card major browsers, hence it is evident that improve testing efficiency.
Detailed description of the invention
Fig. 1 is one structural schematic diagram of the specific embodiment of the invention.
Fig. 2 is two method flow schematic diagram of the specific embodiment of the invention.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention Explanation, and the invention is not limited to following implementation.
Embodiment one
As shown in Figure 1, the present embodiment provides a kind of software compatibility system safety testing devices, comprising:
(1) business operation data recordin module: database is formed for recording all business operation data.
The module records the daily all business operation data of tester, including normal stream and abnormal fluxion According to forming a database.It should be noted that also intelligence learning analysis can be carried out to this database, data mining is carried out.
(2) data conversion module: for reading generated database table, and it is converted into xml document.
Database table is converted into xml document by the jar packet class WriteXmlFile of Java by the module.
Database table is converted into the transformation rule of xml document are as follows: using the keyword of record as attribute of an element, other Information is as node.
Assuming that the content in table are as follows: virtual machine ID, virtual machine title, CPU, memory, IP address, respective value be " 00001 ", "aaa","2","4","192.168.5.1".Using virtual machine ID as keyword, other are as node.The xml document of generation Are as follows:
<? xml version=" 1.0 " encoding=" GB2312 "?><virtual machine essential information><virtual machine virtual machine ID=" 00001 " >
<virtual machine name >aaa</virtual machine name >
<CPU>2</CPU>
<RAM >4</RAM >
<iPaddress >192.168.5.1</IPaddress >.
(3) compatibility test module: using xml document generated as input data, TestNG test frame is utilized Multi-threading carries out software compatibility test.
The module has " compatibility test " button, after clicking the button, can call some of some major browsers The browsers such as major version, such as Google, IE, red fox, the xml document for using data conversion module to generate as input data, Data-driven is carried out using TestNG (an open source automated test frame), carries out compatibility test.
In test case in TestNG be arranged@Test (enabled=true, dataProvider=" testdp ", ThreadPoolSize=3), wherein enabled=true indicates that the execution use-case, threadPoolSize show for adjusting With the thread tankage of method, dataProvider is that one of TestNG is explained, for doing data-driven.
Such as there are three method, three methods are to go to call Google, IE, red fox browser respectively.Survey in each method Examination data are provided by dataProvider, this is exactly while playing 3 different methods of thread parallels execution above three.
Data-driven is realized for dataProvider, is the xml document generated using data conversion module, uses The list parsed, is then converted into Object by DOM4J (being the xml document parsing packet of an open source) parsing xml document Then the data of [] [] type can use in dataProvider note, to realize that data-driven is tested.
(4) problem log module: the problems in the property of would be compatible with test process is summarized and is shown.
The problem of module property of the would be compatible with test module encounters, which is summarized, shows tester, and tester, which further does, to be located Reason.
The method that the Reporter.log in TestNG specifically can be used is presented for running log is put into report To tester.
Embodiment two
As shown in Fig. 2, the present embodiment provides a kind of software compatibility test methods based on above-mentioned test device, including with Lower step:
S1: all business operation data are recorded and form database.
The daily all business operation data of step record tester, including normal stream and abnormal fluxion According to forming a database.It should be noted that also intelligence learning analysis can be carried out to this database, data mining is carried out.
S2: generated database table, and it is converted into xml document.
Database table is converted into xml document by the jar packet class WriteXmlFile of Java by the step.
Database table is converted into the transformation rule of xml document are as follows: using the keyword of record as attribute of an element, other Information is as node.
Assuming that the content in table are as follows: virtual machine ID, virtual machine title, CPU, memory, IP address, respective value be " 00001 ", "aaa","2","4","192.168.5.1".Using virtual machine ID as keyword, other are as node.The xml document of generation Are as follows:
<? xml version=" 1.0 " encoding=" GB2312 "?><virtual machine essential information><virtual machine virtual machine ID=" 00001 " >
<virtual machine name >aaa</virtual machine name >
<CPU>2</CPU>
<RAM >4</RAM >
<iPaddress >192.168.5.1</IPaddress >.
S3: using xml document generated as input data, software compatibility survey is carried out using TestNG test frame Examination.
The step has " compatibility test " button, after clicking the button, can call some of some major browsers The browsers such as major version, such as Google, IE, red fox, the xml document for using step S2 to generate are utilized as input data TestNG (an open source automated test frame) carries out data-driven, carries out compatibility test.
In test case in TestNG be arranged@Test (enabled=true, dataProvider=" testdp ", ThreadPoolSize=3), wherein enabled=true indicates that the execution use-case, threadPoolSize show for adjusting With the thread tankage of method, dataProvider is that one of TestNG is explained, for doing data-driven.
Such as there are three method, three methods are to go to call Google, IE, red fox browser respectively.Survey in each method Examination data are provided by dataProvider, this is exactly while playing 3 different methods of thread parallels execution above three.
Data-driven is realized for dataProvider, is the xml document generated using data conversion module, uses The list parsed, is then converted into Object by DOM4J (being the xml document parsing packet of an open source) parsing xml document Then the data of [] [] type can use in dataProvider note, to realize that data-driven is tested.
S4: the problems in the property of would be compatible with test process is summarized and is shown.
The problem of step property of the would be compatible with test module encounters, which is summarized, shows tester, and tester, which further does, to be located Reason.
The method that the Reporter.log in TestNG specifically can be used is presented for running log is put into report To tester.
Software compatibility system safety testing device provided in this embodiment and method, can be improved compatibility test efficiency, test When personnel test a certain operation flow, business operation data record records operation data, then converts data to xml document, It is input to compatibility test module, by the multi-threading of TestNG, some major browsers is called, utilizes data-driven side Method carries out concurrent testing on these major browsers.It tests at interruption, records problem.Avoid tester repeated authentication master Flow browser, hence it is evident that improve testing efficiency.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement. And retouching, it should all be within the scope of the present invention.

Claims (10)

1. a kind of software compatibility system safety testing device characterized by comprising
Business operation data recordin module: database is formed for recording all business operation data;
Data conversion module: for reading generated database table, and it is converted into xml document;
Compatibility test module: using xml document generated as input data, the multithreading side of TestNG test frame is utilized Method carries out software compatibility test;
Problem log module: the problems in the property of would be compatible with test process is summarized and is shown.
2. software compatibility system safety testing device according to claim 1, which is characterized in that business operation data recordin module institute All business operation data of record include normal stream and abnormal flow data.
3. software compatibility system safety testing device according to claim 1, which is characterized in that data conversion module passes through Java's Database table is converted into xml document by jar packet class WriteXmlFile.
4. software compatibility system safety testing device according to claim 3, which is characterized in that database table is converted into xml text The transformation rule of part are as follows: using the keyword of record as attribute of an element, other information is as node.
5. software compatibility system safety testing device according to claim 1, which is characterized in that compatibility test module is also used to make Packet analyzing xml document is parsed with DOM4J, the list parsed is converted into Object [] [] categorical data, is tested for TestNG Frame carries out test use.
6. software compatibility system safety testing device according to claim 1, which is characterized in that problem log module uses TestNG In Reporter.log method, by running log be placed in report in present.
7. a kind of software compatibility test method, which comprises the following steps:
It records all business operation data and forms database;
Generated database table is read, and is converted into xml document;
Using xml document generated as input data, software compatibility test is carried out using TestNG test frame;
The problems in the property of would be compatible with test process is summarized and is shown.
8. software compatibility test method according to claim 7, which is characterized in that all business operation numbers recorded According to including normal stream and abnormal flow data.
9. software compatibility test method according to claim 7, which is characterized in that generated database table is read, and Being converted into xml document includes:
Database table is converted into xml document by the jar packet class WriteXmlFile of Java;
Database table is converted into the transformation rule of xml document are as follows: using the keyword of record as attribute of an element, other information As node.
10. software compatibility test method according to claim 7, which is characterized in that xml document generated is as defeated Enter data, carrying out software compatibility test using TestNG test frame includes:
Packet analyzing xml document is parsed using DOM4J, the list parsed is converted into Object [] [] categorical data, is supplied TestNG test frame carries out test use;
The problems in the property of would be compatible with test process is summarized and is shown
Using the Reporter.log method in TestNG, running log is placed in report and is presented.
CN201811038595.4A 2018-09-06 2018-09-06 A kind of software compatibility system safety testing device and method Pending CN109240926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811038595.4A CN109240926A (en) 2018-09-06 2018-09-06 A kind of software compatibility system safety testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811038595.4A CN109240926A (en) 2018-09-06 2018-09-06 A kind of software compatibility system safety testing device and method

Publications (1)

Publication Number Publication Date
CN109240926A true CN109240926A (en) 2019-01-18

Family

ID=65060894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811038595.4A Pending CN109240926A (en) 2018-09-06 2018-09-06 A kind of software compatibility system safety testing device and method

Country Status (1)

Country Link
CN (1) CN109240926A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204389A (en) * 2021-05-28 2021-08-03 的卢技术有限公司 Method, system, equipment and storage medium for generating automatic execution strategy
CN117271318A (en) * 2023-09-13 2023-12-22 广州融朋信息科技有限公司 Database compatibility testing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138462A (en) * 2015-09-24 2015-12-09 武汉泰世达科技有限公司 Testing software integration frame and method for processing testing data
CN106407112A (en) * 2016-09-09 2017-02-15 浪潮软件集团有限公司 Automatic testing method based on Selenium and TestNG
US20170060560A1 (en) * 2015-08-26 2017-03-02 Bank Of America Corporation Software and associated hardware regression and compatiblity testing system
CN108304569A (en) * 2018-02-13 2018-07-20 中国银行股份有限公司 A kind of test data accumulation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170060560A1 (en) * 2015-08-26 2017-03-02 Bank Of America Corporation Software and associated hardware regression and compatiblity testing system
CN105138462A (en) * 2015-09-24 2015-12-09 武汉泰世达科技有限公司 Testing software integration frame and method for processing testing data
CN106407112A (en) * 2016-09-09 2017-02-15 浪潮软件集团有限公司 Automatic testing method based on Selenium and TestNG
CN108304569A (en) * 2018-02-13 2018-07-20 中国银行股份有限公司 A kind of test data accumulation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XMMC: "《使用testng进行浏览器(IE、Chrome、FireFox)并发兼容性测试》", 7 October 2017 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204389A (en) * 2021-05-28 2021-08-03 的卢技术有限公司 Method, system, equipment and storage medium for generating automatic execution strategy
CN113204389B (en) * 2021-05-28 2023-09-22 的卢技术有限公司 Method, system, equipment and storage medium for generating automatic execution strategy
CN117271318A (en) * 2023-09-13 2023-12-22 广州融朋信息科技有限公司 Database compatibility testing method and device

Similar Documents

Publication Publication Date Title
Kuhn et al. Semantic clustering: Identifying topics in source code
CN110765639B (en) Electrical simulation modeling method and device and readable storage medium
US8914419B2 (en) Extracting semantic relationships from table structures in electronic documents
Bachlechner et al. Web service discovery-a reality check
CN102135938B (en) Software product testing method and system
Uddin et al. Opiner: an opinion search and summarization engine for apis
CN103870381B (en) A kind of test data generating method and device
CN107451068A (en) Use-case operation method, device, computing device and storage medium
CN102684927B (en) A kind of method and apparatus of patrolling and examining the network equipment
US8682909B2 (en) Managing processes in a repository
US8560518B2 (en) Method and apparatus for building sales tools by mining data from websites
CN108459967A (en) Web application method for generating test case based on user interface state flow-chart
Bano et al. Systematic reviews in requirements engineering: A tertiary study
CN111061696B (en) Method and device for analyzing transaction message log
CN105760296A (en) Automation testing control method, device and terminal
CN103077192B (en) A kind of data processing method and system thereof
CN105868311A (en) Data analyzing method and device
Csuvik et al. Source code level word embeddings in aiding semantic test-to-code traceability
CN107133165A (en) Browser compatibility detection method and device
CN109240926A (en) A kind of software compatibility system safety testing device and method
Yu et al. Tablepedia: Automating pdf table reading in an experimental evidence exploration and analytic system
CN109446042A (en) A kind of blog management method and system for intelligent power equipment
CN105808605B (en) A kind of search log merging method and system
Csuvik et al. Evaluation of textual similarity techniques in code level traceability
CN103856365B (en) Client terminal access device automatic test approach and system

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: 20190118

RJ01 Rejection of invention patent application after publication