Connect public, paid and private patent data with Google Patents Public Datasets

Automatic test platform unrelated to test tool

Download PDF

Info

Publication number
CN105260309A
CN105260309A CN 201510694517 CN201510694517A CN105260309A CN 105260309 A CN105260309 A CN 105260309A CN 201510694517 CN201510694517 CN 201510694517 CN 201510694517 A CN201510694517 A CN 201510694517A CN 105260309 A CN105260309 A CN 105260309A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
test
tested
data
interface
platform
Prior art date
Application number
CN 201510694517
Other languages
Chinese (zh)
Inventor
谷颖
Original Assignee
上海斐讯数据通信技术有限公司
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

Links

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

一种无关测试工具的自动化测试平台 Automated testing platform, unrelated Test Tool

技术领域 FIELD

[0001 ] 本发明涉及自动化测试领域,尤其涉及一种无关测试工具的自动化测试平台。 [0001] The present invention relates to the field of automatic testing, and particularly to a platform independent testing automated testing tools.

背景技术 Background technique

[0002] 在软件测试过程中,自动化测试不仅可以提高工作效率,还可以执行重复的工作,减少出错概率。 [0002] In the process of software testing, test automation can not only improve efficiency, you can also perform repetitive tasks, reducing the probability of errors. 然而测试工具众多,随着测试需要,便需要去学习不同的测试工具,在测试工具进行转变的同时,自动化测试脚本也需要重写,为了解决这一问题,通常采用的办法或是维护多种自动化工具脚本,或是将自动化测试脚本为最近使用的工具进行重写编写,花费的人力物力太多。 However, a number of test tools, test as required, they need to learn different test tools, simultaneous change in testing tools, automated test scripts also need to be rewritten in order to solve this problem, the way to maintain a variety of commonly used or automation tool script, or to write automated test scripts rewritten most recently used as a tool, it takes too much manpower and resources. 比如常用的自动化测试工具有QTP,Robot Framework,monkey等,每一种工具都是独立脚本语言编写,如果工具变化,那么随之而变的还有脚本,维护成本便因此 For example, commonly used automated testing tools QTP, Robot Framework, monkey, etc., each tool is a stand-alone script written language, if the tool change, then change with the script as well as maintenance costs will therefore

发明内容 SUMMARY

[0003] 针对目前自动化测试中测试脚本需要更改的问题,本发明提供了一种无关测试工具的自动化测试平台,无需重写脚本,节省了测试成本。 [0003] For the current problems in test automation test scripts need to be changed, the present invention provides an automated testing platform, unrelated test tools, without having to rewrite the script, saving the cost of testing.

[0004] 本发明采用如下技术方案: [0004] The present invention adopts the following technical solution:

[0005] —种无关测试工具的自动化测试平台,所述测试平台包括: [0005] - species independent testing tool automated testing platform, the test platform comprising:

[0006] 数据库,包括应用程序的待测试数据,所述待测试数据的定义格式相同; [0006] database, comprising application data to be tested, the test data format is defined to be the same;

[0007] 应用程序编程接口,为多种测试工具进行待测试数据调用提供统一的接口; [0007] application programming interface for test data to be calls for a variety of testing tools to provide a unified interface;

[0008] 测试元素,包括所述待测试数据标识的自定义身份参数,所述多种测试工具通过所述身份参数识别所述待测试数据。 [0008] The test elements, including custom identity parameter identifying the data to be tested, the test tool by the plurality of identity parameters identifying the data to be tested.

[0009] 优选的,所述应用程序包括Web应用程序。 [0009] Preferably, the application comprises a Web application.

[0010] 优选的,所述应用程序编程接口设置于Windows系统目录下的动态连接库文件中。 [0010] Preferably, the application programming interface provided dynamic link library file in the Windows system directory.

[0011] 优选的,所述应用程序的源程序通过所述应用程序编程接口在Linux系统中运行。 [0011] Preferably, the source of the application programming interface running on the Linux system by said application program.

[0012] 优选的,所述自定义身份参数包括:唯一的身份标识号和/或数据属性;以及 [0012] Preferably, the self-defined identity parameter comprising: a unique identity number and / or attribute data; and

[0013] 所述多种测试工具通过身份标识号和/或数据属性识别所述待测试数据。 [0013] The plurality of test data to be tested by means of the identity number and / or the data attribute recognition.

[0014] 优选的,采用Xpath作为所述测试元素中的身份标识号。 [0014] Preferably, using Xpath as the identification number for the test elements.

[0015] 优选的,所述自定义身份参数包括:名称,以及 [0015] Preferably, the self-defined identity parameter comprising: a name, and

[0016] 所述测试工具通过所述名称操作所述测试元素。 [0016] The names of the test tool by operating the test element.

[0017] 优选的,所述自定义身份参数包括:类型字段,以及 [0017] Preferably, the self-defined identity parameter comprises: a type field, and

[0018] 所述类型字段用于区别不同所述测试工具之间对所述测试元素的要求。 [0018] The type field is used to distinguish the different requirements of the test elements between the test tool.

[0019] 优选的,所述待测试数据的定义格式包括一个列与一个值。 [0019] Preferably, the defined data formats to be tested comprises a column with a value.

[0020] 优选的,所述测试平台能够进行多行数据处理。 [0020] Preferably, the test platform capable of multi-line data processing.

[0021] 本发明的有益效果是: [0021] Advantageous effects of the present invention are:

[0022] 本发明提出一种无关工具的自动化测试平台,能够对自动化测试人员提供统一的编程接口,能够适应测试工具的变化,而无需修改已经基于此平台编程好的自动化测试脚本。 [0022] The present invention provides a platform-independent tool for automated testing, automated testing personnel to provide a unified programming interface, able to adapt to changes in the test tool, without modifying the program based on this platform has a good automated test scripts.

附图说明 BRIEF DESCRIPTION

[0023] 图1为本发明一种无关测试工具的自动化测试平台的数据实施例一的结构示意图; Schematic diagram of a data structure [0023] FIG. 1 of the present invention, unrelated automated testing tool for testing platform embodiment;

[0024] 图2为本发明一种无关测试工具的自动化测试平台测试元素的分类图; [0024] FIG 2 FIG classification test tool automated testing platform independent of the test element of the present invention;

[0025] 图3为本发明一种无关测试工具的自动化测试平台数据访问方式的示意图。 [0025] FIG. 3 diagram of an automated test platform independent test data access tool of the present invention.

具体实施方式 detailed description

[0026] 需要说明的是,在不冲突的情况下,下述技术方案,技术特征之间可以相互组合。 [0026] Incidentally, in the case of no conflict, the following technical solution can be combined with each other technical features.

[0027] 下面结合附图对本发明的具体实施方式作进一步的说明: [0027] DETAILED DESCRIPTION OF THE DRAWINGS Embodiment of the present invention will be further described:

[0028] 实施例一 [0028] Example a

[0029] 图1为本发明一种无关测试工具的自动化测试平台的数据实施例一的结构示意图,如图1所示,本实施例为一种无关测试工具的自动化测试平台的数据该自动化测试平台主要包括数据库,数据库中包含有应用程序的待测试数据,测试工具主要通过端口从数据库中调取数据,其中为了使得本自动化测试平台无关测试工具,本实施例的端口采用一致的应用程序编程端口(API),即使用相同的接口模块去供调用,此外,要使得测试工具访问数据库中的待测试数据的时候访问方式相同,则需要使用相同的(同一的)数据库,还要有固定的数据定义格式。 [0029] Figure 1 is test data independent INVENTION An automated test platform structural diagram of a tool of the embodiment shown in Figure 1, the present embodiment is a platform for automated test data independent of the automated testing tool for testing platform includes a database, to be tested, the data contained in the database of the application is test tool main retrieved data from the database through the port, wherein in order to make independent testing tool of the present automated test platform, the present embodiment the port embodiment employs application programming consistent interface (API), that is, using the same interface module to call for, in addition, to make the test tool to access the database to be tested in the same data access way when you need to use the same (identical) database, but also fixed data definition format. 数据库中的数据数量巨大,在进行调用的过程中需要有一定的识别方式,而识别的主要内容可以为测试元素,测试元素可以包括唯一的身份标识号(ID)或者属性标识进行识别。 Huge amount of data in the database, the process of making the call needs to have some means of identification, which can be identified as the main content of the test element, the test element can include a unique identity (ID) number or attribute identifies identification.

[0030] 例如,测试应用程序是web应用程序,本实施例的测试平台需要包括有一致的应用程序编程端口,一致的测试元素,一致的测试数据,无需修改已经基于此平台编程好的自动化测试脚本。 [0030] For example, the test application is a web application, the test platform of the present embodiment needs to include consistent application programming interface, consistent test element, consistent test data, without modifying the programming has been based on this platform good automated test script.

[0031 ] 其中,一致的应用程序编程端口在windows系统与Linux系统可以有如下的理解:就windows系统而言,应用程序编程端口通常包含在系统目录下的动态连接库文件中,应用程序编程端口是用来控制windows系统中的各个部件的外观和行为的预先定义的windows 函数。 [0031] wherein a consistent application programming interface in the windows system and the Linux system can be understood as follows: in terms of windows system, application programming interface in a dynamic link library is usually contained in a file system directory, application programming interface windows pre-defined function is used to control the appearance and behavior of the various windows system member. windows 函数可以是Windows API (Windows Applicat1n ProgrammingInterface)即:Windows应用程序编程接口,API函数是Microsoft Windows 32位平台的应用程序编程接口,所有API函数代码放在Windows系统目录下的DLL动态连接库文件中(主要是Kernel32.dll, User32.dll, GDI32.dll, Shell32.dll...);在們11(10«^ 工作环境下执行的应用程序都可以调用Windows API函数;另外Java平台也可以有一套API函数。 windows function may be a Windows API (Windows Applicat1n ProgrammingInterface) that is: Windows application programming interface, API function is a Microsoft Windows 32-bit platform application programming interface, API functions all code in the dynamic link library DLL file in the Windows system directory (mainly Kernel32.dll, User32.dll, GDI32.dll, Shell32.dll ...); in their 11 (10 «^ application to perform the work environment can call the Windows API function; in addition Java platform may also have a sets of API functions.

[0032] 同时,在Linux系统里,这些应用程序编程端口,用于保证应用程序可以在源程序在多种操作系统中运行。 [0032] Meanwhile, in the Linux system, these application programming interface used to ensure that applications can run on multiple operating systems at the source. 系统内的API接口是一组定义、程序及协议的集合,通过API接口实现计算机软件之间的相互通信。 API is a collection of interfaces defined in the system, a set of procedures and protocols, to achieve mutual communication between computer software API interface. API的一个主要功能是提供通用功能集。 One of the main functions of the API is to provide a common set of features. 程序员通过调用API函数对应用程序进行开发,可以减轻编程任务。 Programmers to develop applications by calling the API function, can reduce programming tasks. API同时也是一种中间件,为各种不同平台提供数据共享。 API is also a middleware to provide data sharing for a variety of different platforms.

[0033] 图2为本发明一种无关测试工具的自动化测试平台测试元素的分类图,如图2所示,本实施例中指出的一致的测试元素(Test element)旨在如何能够识别它,通常需要通过一个唯一ID (Identity)或属性来标识它。 [0033] FIG. 2 of the present invention, unrelated FIG automated classification test test test platform element tools, shown in Figure 2, consistent test element of the present embodiment indicated in embodiment (Test element) can identify how it is intended, typically required by a unique ID (identity) or attribute to identify it. 以WEB应用为例,使用Xpath作为唯一ID来识别测试元素,XPath使用路径表达式来选取XML文档中的节点或者节点集。 WEB application to, for example, using Xpath as a unique ID to identify the test element, XPath path expressions used to select a node in the XML document or set of nodes. 这些路径表达式和我们在常规的电脑文件系统中看到的表达式非常相似。 These path expressions and expressions we see in conventional computer file systems are very similar. 路径表达式是从一个XML节点(当前的上下文节点)到另一个节点、或一组节点的书面步骤顺序,同时可以根据实际场景来设计来定义ID。 XML Path expression is from a node (the current context node) to another node in writing order of steps, or a set of nodes, and can be designed to define the actual scene ID. 其次为了能够操作测试元素,还需要知道待测试数据的名字(NAME),因为还需要为它命名。 Secondly, in order to operate the test elements, but also you need to know the name of the data to be tested (NAME), but also because of the need to name it. 本发明一个较佳的实施例中,使用一个类型字段来区别不同工具之间可能对测试元素有些特别的要求,通常使用type字段来标识它。 In a preferred embodiment of the present invention, uses a type field may be used to distinguish some special requirements of the test element, and typically between different tools type field to identify it.

[0034] 图3为本发明一种无关测试工具的自动化测试平台数据访问方式的示意图,如图3所示,对于测试数据(Test data)来讲,每个待测试数据都是有一个列(Column)和一个值(Value)组成,所有数据看起来比较简单。 [0034] FIG. 3 is a schematic automated test platform test data access tools, unrelated to the present invention, shown in Figure 3, the data for the test (Test data) is concerned, the data is to be tested each have a row ( Column) and a value (value), all of the data seem simple. 如果要实现数据驱动的自动化测试,就需要在此平台提供处理多行数据能力。 If you want to achieve data-driven automated testing, we need to provide a platform for processing multiple rows of data in this capacity.

[0035] 在应用本实施例中的测试平台进行测试前需要对待测试应用使用之前进行配置,使用时还要进行初始化等工作,使用完需要进行一些清理销毁等工作。 [0035] the need for treatment before the test Before testing the application is configured to use, but also for initialization, etc. When used, used up need some cleanup work destroyed in this case, the application of the test platform implementation.

[0036] 综上所述,本发明提出一种工具无关的自动化平台设计构想,能够对自动化测试人员提供统一的编程接口,能够适应测试工具的变化。 [0036] In summary, the present invention provides a tool for automation platform-independent design concept that provides a unified programming interface for automated testers, able to adapt to changes in the test tool.

[0037] 通过说明和附图,给出了具体实施方式的特定结构的典型实施例,基于本发明精神,还可作其他的转换。 [0037] The description and drawings, given the particular structure of the exemplary embodiment of specific embodiments, based on the spirit of the present invention, but also for other transformations. 尽管上述发明提出了现有的较佳实施例,然而,这些内容并不作为局限。 Although the foregoing prior proposed invention, the preferred embodiment, however, the content is not by way of limitation.

[0038] 对于本领域的技术人员而言,阅读上述说明后,各种变化和修正无疑将显而易见。 [0038] For those skilled in the art, upon reading the foregoing description, various changes and modifications will no doubt become apparent. 因此,所附的权利要求书应看作是涵盖本发明的真实意图和范围的全部变化和修正。 Accordingly, the appended claims should be considered all alterations and modifications to cover the true spirit and scope of the present invention. 在权利要求书范围内任何和所有等价的范围与内容,都应认为仍属本发明的意图和范围内。 Within the scope of the appended claims and any and all equivalents ranges content, to be considered within the spirit and scope of the present invention still.

Claims (10)

1.一种无关测试工具的自动化测试平台,其特征在于,所述测试平台包括: 数据库,包括应用程序的待测试数据,所述待测试数据的定义格式相同; 应用程序编程接口,为多种测试工具进行待测试数据调用提供统一的接口; 测试元素,包括所述待测试数据标识的自定义身份参数,所述多种测试工具通过所述身份参数识别所述待测试数据。 A platform independent automated testing tools to test, wherein said test platform comprising: a database, the data includes an application to be tested, which is defined to be the same as the format of the test data; application programming interface, for a variety of testing tool to be tested to provide a unified interface to a data call; test elements, including custom identity parameter identifying the data to be tested, said test tool by a plurality of said identity parameter identifying the data to be tested.
2.根据权利要求1所述的无关测试工具的自动化测试平台,其特征在于,所述应用程序包括Web应用程序。 The automated test platform independent testing tool according to claim 1, wherein said application comprises a Web application.
3.根据权利要求1所述的无关测试工具的自动化测试平台,其特征在于,所述应用程序编程接口设置于Windows系统目录下的动态连接库文件中。 The automatic test platform according to an independent testing tool as claimed in claim, wherein the application programming interface provided dynamic link library file in the Windows system directory.
4.根据权利要求1所述的无关测试工具的自动化测试平台,其特征在于,所述应用程序的源程序通过所述应用程序编程接口在Linux系统中运行。 The automatic test platform according to an independent testing tool as claimed in claim, wherein the source application program to the application programming interface by running the Linux system.
5.根据权利要求1所述的无关测试工具的自动化测试平台,其特征在于,所述自定义身份参数包括:唯一的身份标识号和/或数据属性;以及所述多种测试工具通过身份标识号和/或数据属性识别所述待测试数据。 5. The automated test platform independent testing tool according to claim 1, wherein said custom identity parameter comprising: a unique identity number and / or the data attribute; said plurality of test tools and identity number and / or the data attribute identifying the data to be tested.
6.根据权利要求5所述的无关测试工具的自动化测试平台,其特征在于,采用Xpath作为所述测试元素中的身份标识号。 Automated test platform according to claim 5, wherein the independent test tool, characterized in that, using Xpath as the identification number for the test elements.
7.根据权利要求1所述的无关测试工具的自动化测试平台,其特征在于,所述自定义身份参数包括:名称,以及所述测试工具通过所述名称操作所述测试元素。 The automatic test platform according to an independent testing tool as claimed in claim, wherein said custom authentication parameters include: the name, and the name of the test tool by the operation of the test element.
8.根据权利要求1所述的无关测试工具的自动化测试平台,其特征在于,所述自定义身份参数包括:类型字段,以及所述类型字段用于区别不同所述测试工具之间对所述测试元素的要求。 Automated test platform according to independent testing tool according to claim 1, wherein said custom authentication parameters comprises: a type field, and the field is used to distinguish between different types of the test tool between the require testing elements.
9.根据权利要求1所述的无关测试工具的自动化测试平台,其特征在于,所述待测试数据的定义格式包括一个列与一个值。 9. The automated test platform independent testing tool according to claim 1, wherein said test data to be defined format comprises a column with a value.
10.根据权利要求9所述的无关测试工具的自动化测试平台,其特征在于,所述测试平台能够进行多行数据处理。 Independent testing tool automated testing platform according to claim 9, wherein said test platform capable of multi-line data processing.
CN 201510694517 2015-10-21 2015-10-21 Automatic test platform unrelated to test tool CN105260309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510694517 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
CN 201510694517 CN105260309A (en) 2015-10-21 2015-10-21 Automatic test platform unrelated to test tool

Publications (1)

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

Family

ID=55100009

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN105260309A (en)

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原创测试文章系列(三十八)》 *

Similar Documents

Publication Publication Date Title
US5758351A (en) System and method for the creation and use of surrogate information system objects
US6003095A (en) Apparatus and method for demand loading a dynamic link library
US6298353B1 (en) Checking serialization compatibility between versions of java classes
US20060212847A1 (en) Type checker for a typed intermediate representation of object-oriented languages
US5996073A (en) System and method for determining computer application state
US20070016829A1 (en) Test case generator
US20040083464A1 (en) Non-invasive rule-based binary analysis of software assemblies
US20050177775A1 (en) Data race detection using sequential program analysis
US6799320B1 (en) Providing binding options for component interfaces
US20090328002A1 (en) Analysis and Detection of Responsiveness Bugs
US20080235661A1 (en) System and method for using annotations to automatically generate a framework for a custom javaserver faces (jsf) component
US20090217250A1 (en) Graphical user interface metadata evolution tool
EP0387172A2 (en) Procedure call interface
Petrov et al. Race detection for web applications
US7861222B2 (en) Discoscript: a simplified distributed computing scripting language
US20100050159A1 (en) System and process for debugging object-oriented programming code leveraging runtime metadata
US20050172263A1 (en) Methods, systems, and computer program products for integrating legacy applications into a platform-independent environment
US20110283148A1 (en) Generating reusable test components out of remote application programming interface
US20120102458A1 (en) Generating documentation from tests
US20040123308A1 (en) Hybird of implicit and explicit linkage of windows dynamic link labraries
US20070150867A1 (en) Apparatus and method for grouping threads in a debugger display
US20080313208A1 (en) Apparatus, system, and method for automated context-sensitive message organization
US20110314459A1 (en) Compiler with user-defined type inference rules
US20020059565A1 (en) System and method for common code generation
US6934949B2 (en) Method, computer program product, and system for dual mode batch program execution

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination