CN105260309A - Automatic test platform unrelated to test tool - Google Patents

Automatic test platform unrelated to test tool Download PDF

Info

Publication number
CN105260309A
CN105260309A CN201510694517.XA CN201510694517A CN105260309A CN 105260309 A CN105260309 A CN 105260309A CN 201510694517 A CN201510694517 A CN 201510694517A CN 105260309 A CN105260309 A CN 105260309A
Authority
CN
China
Prior art keywords
testing tool
data
test platform
automatic test
tested
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
CN201510694517.XA
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510694517.XA priority Critical patent/CN105260309A/en
Publication of CN105260309A publication Critical patent/CN105260309A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the field of automatic tests, in particular to an automatic test platform unrelated to a test tool. The test platform comprises a database, an application programming interface and a test element, wherein the database comprises data to be tested of an application, and defined formats of the data to be tested are the same; the application programming interface is used for providing a unified interface for various test tools used for call of the data to be tested; the test element comprises user-defined identity parameters identified by the data to be tested, and the various test tools can recognize the data to be tested through the user-defined identity parameters.

Description

A kind of automatic test platform of irrelevant testing tool
Technical field
The present invention relates to automatic test field, particularly relate to a kind of automatic test platform of irrelevant testing tool.
Background technology
In software test procedure, automatic test not only can be increased work efficiency, and can also perform the work of repetition, reduces error probability.But testing tool is numerous, along with test needs, just need to learn different testing tools, while testing tool carries out changing, automatic test script also needs to rewrite, in order to address this problem, and the way usually adopted or safeguard multiple automation tools script, or be that most recently used instrument carries out rewriting and writes by automatic test script, the manpower and materials of cost are too many.Such as conventional automated test tool has QTP, RobotFramework, monkey etc., and each instrument is all independent scripting language, if instrument change, what become also has script so thereupon, and therefore maintenance cost just improves.
Summary of the invention
Need the problem of change for test script in current automatic test, the invention provides a kind of automatic test platform of irrelevant testing tool, without the need to rewriteeing script, saving testing cost.
The present invention adopts following technical scheme:
An automatic test platform for irrelevant testing tool, described test platform comprises:
Database, comprises the data to be tested of application program, and the definition format of described data to be tested is identical;
Application programming interface, for multiple testing tool carries out the interface that data call to be tested provides unified;
Test elements, comprises the self-defined identification parameters of described Data Identification to be tested, and described multiple testing tool is by data to be tested described in described identification parameters identification.
Preferably, described application program comprises web application.
Preferably, described application programming interface is arranged in the Dynamic link library library file under Windows system directory.
Preferably, the source program of described application program is run in linux system by described application programming interface.
Preferably, described self-defined identification parameters comprises: unique identify label number and/or data attribute; And
Described multiple testing tool is by data to be tested described in identify label number and/or data attribute identification.
Preferably, adopt Xpath as the identify label number in described test elements.
Preferably, described self-defined identification parameters comprises: title, and
Described testing tool is by test elements described in described name operation.
Preferably, described self-defined identification parameters comprises: type field, and
Described type field is for distinguishing the requirement to described test elements between different described testing tool.
Preferably, the definition format of described data to be tested comprises row and a value.
Preferably, described test platform can carry out multirow data processing.
The invention has the beneficial effects as follows:
The present invention proposes a kind of automatic test platform of irrelevant instrument, can provide unified DLL (dynamic link library) to automatic test personnel, can the change of adaptive testing instrument, and without the need to amendment based on the automatic test script that this platform is programmed.
Accompanying drawing explanation
Fig. 1 is the structural representation of the DATA Example one of the automatic test platform of a kind of irrelevant testing tool of the present invention;
Fig. 2 is the classification chart of the automatic test platform test elements of a kind of irrelevant testing tool of the present invention;
Fig. 3 is the schematic diagram of the automatic test platform data access mode of a kind of irrelevant testing tool of the present invention.
Embodiment
It should be noted that, when not conflicting, following technical proposals, can combine between technical characteristic mutually.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described:
Embodiment one
Fig. 1 is the structural representation of the DATA Example one of the automatic test platform of a kind of irrelevant testing tool of the present invention, as shown in Figure 1, the present embodiment is that this automatic test platform of data of a kind of automatic test platform of irrelevant testing tool mainly comprises database, the data to be tested of application program are included in database, testing tool is mainly through port called data from database, wherein in order to make this automatic test platform to have nothing to do testing tool, the port of the present embodiment adopts consistent application programming port (API), namely identical interface module is used to go for calling, in addition, when making the data to be tested in testing tool accessing database, access mode is identical, then need to use identical (same) database, also to there is fixing data definition format.Data bulk in database is huge, carrying out needing certain recognition method in the process called, and the main contents identified can be test elements, test elements can comprise unique identify label number (ID) or attribute-bit identifies.
Such as, test application is weblication, and the test platform of the present embodiment needs to include consistent application programming port, consistent test elements, consistent test data, without the need to amendment based on the automatic test script that this platform is programmed.
Wherein, consistent application programming port can have following understanding in windows system and linux system: with regard to windows system, application programming port is generally comprised within the Dynamic link library library file under system directory, and application programming port is used to the outward appearance of all parts in control windows system and the predefined windows function of behavior.Windows function can be WindowsAPI (WindowsApplicationProgrammingInterface) namely: window application DLL (dynamic link library), api function is the application programming interface of MicrosoftWindows32 bit platform, all api function codes are placed on (mainly Kernel32.dll in the DLL Dynamic link library library file under Windows system directory, User32.dll, GDI32.dll, Shell32.dll...); The application program performed under Windows working environment can Employ Windows API Function; Java platform also can have a set of api function in addition.
Meanwhile, in linux system, these application programming ports, for ensureing that application program can be run in several operation systems at source program.Intrasystem api interface is the set of one group of definition, program and agreement, realizes the intercommunication mutually between computer software by api interface.A major function of API is to provide general utility functions collection.Programmer is developed by Using API Function application programs, can alleviate programmed tasks.API is also a kind of middleware simultaneously, for various different platform provides data sharing.
Fig. 2 is the classification chart of the automatic test platform test elements of a kind of irrelevant testing tool of the present invention, as shown in Figure 2, the consistent test elements (Testelement) pointed out in the present embodiment is intended to how can identify it, usually needs to identify it by a unique ID (Identity) or attribute.For WEB application, use Xpath to identify test elements as unique ID, XPath uses path expression to choose node in XML document or set of node.The expression formula that these path expressions are seen in the computer document system of routine with us is closely similar.Path expression is the written sequence of steps from an XML node (current context node) to another node or a group node, can design simultaneously define ID according to actual scene.Secondly in order to can operational testing element, the name (NAME) knowing data to be tested be also needed, because also need for its name.In the present invention's preferred embodiment, using a type field to distinguish between different instrument may, to some special requirement of test elements, use type field to identify it usually.
Fig. 3 is the schematic diagram of the automatic test platform data access mode of a kind of irrelevant testing tool of the present invention, as shown in Figure 3, for test data (Testdata), each data to be tested have a row (Column) and value (Value) composition, and all data seem fairly simple.If realize the automatic test of data-driven, just need to provide process multirow data capability at this platform.
Test platform in application the present embodiment needs before testing to treat before Test Application uses to be configured, and also will carry out the work such as initialization during use, uses and needs to carry out the work such as some cleaning destructions.
In sum, the present invention proposes the irrelevant robotization platform Design Conception of a kind of instrument, can provide unified DLL (dynamic link library) to automatic test personnel, can the change of adaptive testing instrument.
By illustrating and accompanying drawing, giving the exemplary embodiments of the ad hoc structure of embodiment, based on the present invention's spirit, also can do other conversion.Although foregoing invention proposes existing preferred embodiment, but these contents are not as limitation.
For a person skilled in the art, after reading above-mentioned explanation, various changes and modifications undoubtedly will be apparent.Therefore, appending claims should regard the whole change and correction of containing true intention of the present invention and scope as.In Claims scope, the scope of any and all equivalences and content, all should think and still belong to the intent and scope of the invention.

Claims (10)

1. an automatic test platform for irrelevant testing tool, is characterized in that, described test platform comprises:
Database, comprises the data to be tested of application program, and the definition format of described data to be tested is identical;
Application programming interface, for multiple testing tool carries out the interface that data call to be tested provides unified;
Test elements, comprises the self-defined identification parameters of described Data Identification to be tested, and described multiple testing tool is by data to be tested described in described identification parameters identification.
2. the automatic test platform of irrelevant testing tool according to claim 1, is characterized in that, described application program comprises web application.
3. the automatic test platform of irrelevant testing tool according to claim 1, is characterized in that, described application programming interface is arranged in the Dynamic link library library file under Windows system directory.
4. the automatic test platform of irrelevant testing tool according to claim 1, is characterized in that, the source program of described application program is run in linux system by described application programming interface.
5. the automatic test platform of irrelevant testing tool according to claim 1, is characterized in that, described self-defined identification parameters comprises: unique identify label number and/or data attribute; And
Described multiple testing tool is by data to be tested described in identify label number and/or data attribute identification.
6. the automatic test platform of irrelevant testing tool according to claim 5, is characterized in that, adopts Xpath as the identify label number in described test elements.
7. the automatic test platform of irrelevant testing tool according to claim 1, is characterized in that, described self-defined identification parameters comprises: title, and
Described testing tool is by test elements described in described name operation.
8. the automatic test platform of irrelevant testing tool according to claim 1, is characterized in that, described self-defined identification parameters comprises: type field, and
Described type field is for distinguishing the requirement to described test elements between different described testing tool.
9. the automatic test platform of irrelevant testing tool according to claim 1, is characterized in that, the definition format of described data to be tested comprises row and a value.
10. the automatic test platform of irrelevant testing tool according to claim 9, is characterized in that, described test platform can carry out multirow data processing.
CN201510694517.XA 2015-10-21 2015-10-21 Automatic test platform unrelated to test tool Pending CN105260309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510694517.XA CN105260309A (en) 2015-10-21 2015-10-21 Automatic test platform unrelated to test tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510694517.XA CN105260309A (en) 2015-10-21 2015-10-21 Automatic test platform unrelated to test tool

Publications (1)

Publication Number Publication Date
CN105260309A true CN105260309A (en) 2016-01-20

Family

ID=55100009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510694517.XA Pending CN105260309A (en) 2015-10-21 2015-10-21 Automatic test platform unrelated to test tool

Country Status (1)

Country Link
CN (1) CN105260309A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415826A (en) * 2018-01-12 2018-08-17 深圳壹账通智能科技有限公司 Test method, terminal device and the computer readable storage medium of application

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034370A (en) * 2006-03-10 2007-09-12 大唐移动通信设备有限公司 Software system multi-user characteristic testing method and system
US20090024874A1 (en) * 2007-07-18 2009-01-22 Novell, Inc. Generic template to autogenerate reports for software target testing
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034370A (en) * 2006-03-10 2007-09-12 大唐移动通信设备有限公司 Software system multi-user characteristic testing method and system
US20090024874A1 (en) * 2007-07-18 2009-01-22 Novell, Inc. Generic template to autogenerate reports for software target testing
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郝强: "工具无关的自动化测试平台设计", 《51TESTING原创测试文章系列(三十八)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415826A (en) * 2018-01-12 2018-08-17 深圳壹账通智能科技有限公司 Test method, terminal device and the computer readable storage medium of application
CN108415826B (en) * 2018-01-12 2021-10-29 深圳壹账通智能科技有限公司 Application testing method, terminal device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110096338B (en) Intelligent contract execution method, device, equipment and medium
CN107133174A (en) Test case code automatically generating device and method
CN104391797A (en) GUI (graphical user interface) widget identification method and device
US8635593B2 (en) Dynamic autocompletion tool
CN105183592B (en) Method and apparatus for supporting performance evaluation
US20120084750A1 (en) Method for Efficiently Managing Property Types and Constraints In a Prototype Based Dynamic Programming Language
CN106919494B (en) Method and device for realizing android application log
CN104408366A (en) Android application permission usage behavior tracking method based on plug-in technology
CN112765023A (en) Test case generation method and device
CN105446865A (en) Test method and device under multi-environment
CN101251799B (en) Apparatus and method for implementing management
CN105743736A (en) Automated testing method and system
EP3217284A1 (en) Data structure abstraction for model checking
CN106598828A (en) Method and device for determining invalid class in source code
US10387124B2 (en) System and method for creating domain specific language
CN107122203B (en) Configuration file setting method and device
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN103198011B (en) A kind of method and device detecting JAVA program file disturbance
CN109491884A (en) Code method for testing performance, device, computer equipment and medium
CN105260309A (en) Automatic test platform unrelated to test tool
CN100346308C (en) Automatic test method based on database operation
US9436575B2 (en) Selective profiling of applications
CN103389893A (en) Read-write method and device for configuration register
CN109901831A (en) The multi-platform compatibility operation method and compatibility operation device of software
CN111880803B (en) Software construction method and device applied to multiple platforms

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120