CN106155881A - Method and system for application program testing aiming at VxWorks platform - Google Patents

Method and system for application program testing aiming at VxWorks platform Download PDF

Info

Publication number
CN106155881A
CN106155881A CN201510138374.4A CN201510138374A CN106155881A CN 106155881 A CN106155881 A CN 106155881A CN 201510138374 A CN201510138374 A CN 201510138374A CN 106155881 A CN106155881 A CN 106155881A
Authority
CN
China
Prior art keywords
test
application
module
information
testing
Prior art date
Application number
CN201510138374.4A
Other languages
Chinese (zh)
Other versions
CN106155881B (en
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
Application filed by 中国航天科工集团第四研究院指挥自动化技术研发与应用中心 filed Critical 中国航天科工集团第四研究院指挥自动化技术研发与应用中心
Priority to CN201510138374.4A priority Critical patent/CN106155881B/en
Publication of CN106155881A publication Critical patent/CN106155881A/en
Application granted granted Critical
Publication of CN106155881B publication Critical patent/CN106155881B/en

Links

Abstract

The invention provides a method and system for application program testing aiming at a VxWorks platform. The method comprises the steps that keyword information of a testing case is set on a testing application program of a testing terminal according to a testing protocol; according to the testing protocol and the keyword information, a logical judgment condition corresponding to the keyword information is generated; testing feedback information is generated according to the logical judgment condition and a received testing message sent by a tested application program on a target terminal, and the testing feedback information is sent to the target terminal; a testing result which is sent by the tested application program on the target terminal and generated according to the testing feedback information is received; and the testing result is analyzed, so that the application program testing of the VxWorks platform can be completed. According to the invention, automation of the application program testing is implemented when the tested application program has no application interface or the application interfaces are insufficient, and the tested application program has a lot of logics.

Description

针对VxWorks平台的应用程序测试方法和系统 For application testing methods and systems VxWorks platforms

技术领域 FIELD

[0001] 本发明涉及通信技术领域,以及计算机技术领域,特别是涉及一种针对VxWorks 平台的应用程序方法和系统。 [0001] The present invention relates to the field of communications technology, and computer technology, and more particularly, to a method and system for application on VxWorks.

背景技术 Background technique

[0002] VxWorks操作系统是于1983年设计开发的一种嵌入式实时操作系统,是嵌入式开发环境的关键组成部分。 [0002] VxWorks operating system in an embedded design and development of the 1983 real-time operating system, is a key part of embedded development environment. 良好的持续发展能力、高性能的内核以及友好的用户开发环境,在嵌入式实时操作系统领域占据一席之地。 Good sustainable development capacity, high-performance kernel and user-friendly development environment, a place in the field of embedded real-time operating system. 它以其良好的可靠性和卓越的实时性被广泛地应用在通信、军事、航空、航天等高精尖技术及实时性要求极高的领域中,如卫星通讯、军事演习、弹道制导、飞机导航等。 With its good reliability and excellent real-time performance has been widely used in communications, military, aviation, aerospace and other sophisticated technology and high real-time requirements in areas such as satellite communications, military exercises, ballistic guidance, aircraft navigation.

[0003] 现有的软件自动化测试技术主要有:录制/回放、脚本技术、数据驱动、关键字驱动、业务驱动。 [0003] Existing automated software testing technology are: recording / playback, scripting technology, data-driven, keyword-driven, business-driven. 数据驱动从数据文件读取输入数据,通过变量的参数化将测试数据传入测试脚本,不同的数据文件对应不同的测试用例。 The data driver reads data from the input data file, the parameter of the test data in the variable test script, different data files corresponding to different test cases. 在这种模式下数据和脚本分离,脚本的利用率、可维护性大大提高,但受界面变化的影响很大。 Separation of data and scripts in this mode, the utilization of the script, maintainability greatly improved, but the interface is greatly affected by the change. 关键字驱动测试是数据驱动测试的一种改进类型,它将测试逻辑按照关键字进行分解,形成数据文件,关键字对应封装的业务逻辑,主要关键字包括三类:被操作对象、操作和值。 Keyword-driven testing is an improved type of drive test data, the test logic will be decomposed by keyword, forming a data file, a keyword corresponding to the business logic of the package, comprising three main keyword: the operated object, and the operation value . 关键字驱动的主要思想是:脚本与数据分离,界面元素与测试内部对象分离,测试描述与具体实现细节分离。 The main idea is keyword-driven: the script and data separation, and testing of internal object interface elements separate, test description and specific implementation details of the separation. 之前的关键字驱动同样是应对业务逻辑,但是按照操作对象来进行分类, Before the keyword-driven business is to deal with the same logic, but according to the operation to classify objects,

[0004] 现在大部分自动化测试软件通过录制技术使被测软件得到回放,实现自动化测试需求,虽然可以减轻测试人员的工作量。 [0004] Now most automated testing software by recording technology to get tested software playback, automated test requirements, although you can reduce the workload of testers. 但是,由于自动化测试软件本身不具备思维能力, 如果被测软件没有较多的界面或者没有界面,而是存在较多的逻辑判断,自动化测试软件无法利用录制/回放技术实现自动化测试。 However, the automated testing software itself does not have the thinking ability, if not more tested software interface or no interface, but there are more logical judgment, automated testing automated testing software can not take advantage of record / playback technology.

发明内容 SUMMARY

[0005] 本发明提供一种针对VxWorks平台的应用程序方法和系统,以解决现有的自动化测试软件无法利用录制/回放技术实现自动化测试的问题。 [0005] The present invention provides a method and system for applications VxWorks platform to address existing test automation software can not take advantage of record / playback technology issue automated testing.

[0006] 为了解决上述问题,本发明公开了一种针对VxWorks平台的应用程序测试方法, 所述方法应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接,所述方法包括: [0006] In order to solve the above problems, the present invention discloses a method for testing an application, the method VxWorks platform applied to the application under the target terminal using the test environment for testing the application on the test terminal, VxWorks platform using the target terminal, the terminal uses the Windows platform test, the test terminal and the target terminal using the wired connection, the method comprising:

[0007] 根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息; [0007] The key information set of test cases in the test application test according to the test protocol terminal;

[0008] 根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件; [0008] The determination condition of the test protocol and the key information generation information corresponding to the keyword logic;

[0009] 根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端; [0009] The test application logic on the determination condition and the target terminal received test packets sent from the feedback generating test information, and transmitted to the target terminal;

[0010] 接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果;并对所述测试结果进行分析,完成VxWorks平台的应用程序测试。 [0010] receiving the application under test sent by the terminal on the target, the feedback information generated according to the test results of the test; and the test results are analyzed, application testing completed on VxWorks.

[0011] 优选地,所述对所述测试结果进行分析,包括: [0011] Preferably, the analysis of the test results, comprising:

[0012] 对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息。 [0012] performed on the test result packet field analysis to obtain an analysis result, the analysis and presentation information identifying the application under test results of various functional modules by way of the chart.

[0013] 优选地,所述对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息之后,所述方法还包括: After [0013] Preferably, the parsing of the message fields of the test results, the obtained analysis result, the analysis and presentation information identifying the application under test results of various functional modules by way of the chart, the the method further comprises:

[0014] 根据所述被测应用程序的各个功能模块的信息确定不满足测试要求的功能模块; [0014] determined to not meet the test requirements of functional modules each module's of the application under test;

[0015] 对所述不满足测试要求的功能模块进行回归测试。 [0015] regression testing the function module does not meet the test requirements.

[0016] 优选地,所述根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息之前,所述方法还包括: [0016] Preferably, the key information before the test according to the test protocol set on a test application of the test terminal, the method further comprising:

[0017] 选择所述测试终端上的测试应用程序与所述目标终端上的被测应用程序之间的通信方式。 [0017] selecting the test communication between the test application on the terminal and the application under test on the target terminal.

[0018] 优选地,所述关键字信息包括:关键字名称、关键字位置、关键字数值和反馈报文记D [0018] Preferably, said keyword information comprising: a keyword name, keyword location, keywords, and numerical feedback message note D

[0019] 相应地,本发明还公开了一种针对VxWorks平台的应用程序测试系统,所述系统应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接,所述系统包括: [0019] Accordingly, the present invention also discloses a one for environmental testing applications on VxWorks system, the test system is applied using the application on the terminal application under test on the test target terminal, the VxWorks platform using said target terminal, the terminal uses the Windows platform test, the test terminal and the target terminal using the wired connection, the system comprising:

[0020] 关键字信息设定模块,用于根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息; [0020] Keyword information setting means for setting the key information in the test test application of the test according to the test protocol terminal;

[0021] 判断条件生成模块,用于根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件; [0021] Analyzing condition generating module, according to the test protocol for determining the condition logic and generate the key information corresponding to the keyword information;

[0022] 反馈信息生成模块,用于根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端; [0022] Feedback information generation module, according to the measured application logic on the determination condition and the target terminal received test packets sent from the feedback generating test information, and transmitted to the target terminal;

[0023] 测试结果分析模块,用于接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果;并对所述测试结果进行分析,完成VxWorks平台的应用程序测试。 [0023] The test result analyzing module, for receiving the test target application program on the terminal sent, according to the test result of the feedback information generated by the test; and the test results are analyzed, to complete the application on VxWorks program test.

[0024] 优选地,所述测试结果分析模块对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息。 [0024] Preferably, the test result of the test result analyzing module packet field is parsed to obtain the analysis result, the analysis information and the measured results of the application identified by the various functional modules show graphically .

[0025] 优选地,所述系统还包括: [0025] Preferably, the system further comprising:

[0026] 功能模块确定模块,用于在所述测试结果分析模块对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息之后,根据所述被测应用程序的各个功能模块的信息确定不满足测试要求的功能t吴块; [0026] Function module determines module for the test result packet field analysis module analyzing the test results to obtain an analysis result, and to show the measured result of the analysis application program identified by way of the chart after the information of each function module, determines the function does not meet the test requirements of the information blocks Wu t of each module of the application under test;

[0027] 回归测试模块,用于对所述不满足测试要求的功能模块进行回归测试。 [0027] regression testing module for the function module does not meet the test requirements for regression testing.

[0028] 优选地,所述系统还包括: [0028] Preferably, the system further comprising:

[0029] 通信方式选择模块,用于在所述关键字信息设定模块根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息之前,选择所述测试终端上的测试应用程序与所述目标终端上的被测应用程序之间的通信方式。 [0029] The communication selection module configured to, before the key information setting module sets the key information in the test cases to test the application of the test terminal according to the test protocol, the test on the test select terminals communication between the application and the application under test on the target terminal.

[0030] 优选地,所述关键字信息包括:关键字名称、关键字位置、关键字数值和反馈报文记D [0030] Preferably, said keyword information comprising: a keyword name, keyword location, keywords, and numerical feedback message note D

[0031] 与背景技术相比,本发明包括以下优点: [0031] compared to the background art, the present invention includes the following advantages:

[0032] 本发明技术方案应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,其中,目标终端采用VxWorks平台,测试终端采用Windows平台,测试终端与目标终端采用有线方式连接。 [0032] The technical solution of the present invention to use a test application on terminal application under test on the test target terminal environment, wherein the target terminal uses VxWorks platform, Windows platform using the test terminal, a test terminal and a target terminal using wired connections. 本发明技术方案根据测试协议在测试终端的测试应用程序上设定测试用例的关键字信息;根据测试协议和关键字信息生成与关键字信息对应的逻辑判断条件;根据逻辑判断条件和接收到的目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至目标终端;接收目标终端上的被测应用程序发来的,根据测试反馈信息生成的测试结果;并对测试结果进行分析,完成VxWorks平台的应用程序测试。 Technical Solution The present invention is set according to the test protocol in the test application testing of test terminal keyword information; The test protocol and the key information generating logic determines the condition information corresponding to the keyword; Analyzing conditions and according to the logic of the received the application under test target sent from the terminal feedback information to generate test packets, and transmits to the target terminal; receiving a target application on the test sent by the terminal, according to the result of the test the generated feedback information; and test the results were analyzed to complete the application testing VxWorks platform. 本发明技术方案根据测试协议和设定的关键信息生成与关键字信息对应的逻辑判断条件, 利用逻辑判断条件对被测应用程序的测试报文进行自动化测试,生成测试反馈信息,进一步对被测应用程序根据测试反馈信息生成测试结果进行分析,在被测应用程序无应用界面或应用界面少,且被测应用程序存在较多逻辑的情况下,实现了应用程序的测试自动化。 Technical Solution According to the present invention, the key information generation and logic determination condition information corresponding to the keyword and setting the test protocol, the test condition is determined using the logical packets to automate the application under test, the test generating feedback information further tested if the application generates feedback information according to the test result analysis test, the test application in the application interface or less without application interface, the application under test and there is more logic to achieve the test automation application.

附图说明 BRIEF DESCRIPTION

[0033] 图1是本发明实施例中的一种针对VxWorks平台的应用程序测试方案的具体实施结构图; [0033] FIG. 1 is a specific embodiment of the embodiment of FIG configuration for application testing on VxWorks embodiment of the present invention;

[0034] 图2是本发明实施例中的一种自动化测试软件的结构示意图; [0034] FIG. 2 is a schematic structural diagram of an automated testing software in an embodiment of the present invention;

[0035] 图3是本发明实施例一中的一种针对VxWorks平台的应用程序测试方法的步骤流程图; [0035] FIG. 3 is a diagram of a flowchart of the embodiment of the present invention, the step for application of the test method VxWorks platform;

[0036] 图4是本发明实施例二中的一种针对VxWorks平台的应用程序测试方法的步骤流程图; [0036] FIG. 4 is a two embodiments of the invention in a flowchart of steps for a method of testing applications on VxWorks;

[0037] 图5是本发明实施例三中的一种针对VxWorks平台的应用程序测试系统的结构示意图; [0037] FIG. 5 is a structural diagram of the embodiment three test systems for application on VxWorks embodiment of the present invention;

[0038] 图6是本发明实施例四中的一种针对VxWorks平台的应用程序测试系统的结构示意图。 [0038] FIG. 6 is a structural diagram of embodiment four of the test system for application on VxWorks embodiment of the present invention.

具体实施方式 Detailed ways

[0039] 为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。 [0039] For the above-described objects, features and advantages of the invention more apparent, the accompanying drawings and the following specific embodiments of the present invention will be further described in detail.

[0040] 本发明技术方案的具体实施结构图如图1所示,其中,目标机中运行被测试的应用程序(被测试软件),测试机上运行测试应用程序(自动化测试软件),利用测试应用程序对被测试应用程序进行自动化测试,测试机向目标机发送测试用例,在目标机的被测试应用程序上执行测试用例,目标机将测试结果传送回测试机,同时,测试机可以在数据库中存储和提取测试数据,数据库可以采用SQL Server (微软公司的一种数据库应用程序)等。 The [0040] DETAILED configuration diagram of the present embodiment aspect of the present invention, wherein the target machine running the application being tested (the test software), the test machine shown in Figure 1 test run applications (automated testing software) applications using test program for the test application to automate testing, test sends a test case to the target machine, execute test cases on the test application target machine, the target machine test results sent back to the test machine, while the machine can test in the database storage and retrieval of test data, the database can use SQL Server (Microsoft a database application) and so on.

[0041] 本发明技术方案可以归纳为以下三步执行,分别为: [0041] The technical solution of the present invention can be summarized as the following three steps executed, namely:

[0042] -、搭建测试环境 [0042] -, set up a test environment

[0043] 目标机与测试机通过有线网络连接,目标机应用VxWorks平台,并安装测试结果记录软件,该软件的作用是获取被测试软件的信息,并将测试结果传送回自动化测试软件。 [0043] The target and the testing machine through a wired network connection, on VxWorks target application, and install the software records the test results, the role of the software is tested software to obtain information, and transmits the result back to test automated testing software.

[0044] 自动化测试软件在Windows系统下运行,自动化测试软件的结构如图2所示,该自动化测试软件具有的功能模块有:录入测试用例模块、负载测试模块、回归测试模块、数据分析模块、数据存储模块和记录日志模块。 [0044] Test automation software running under Windows systems, automated testing software architecture shown in Figure 2, the automated testing software having a function modules: input test module, a test load module, regression testing module, a data analysis module, data storage module and the logging module. 其中, among them,

[0045] 录入测试用例模块针对被测试软件的协议进行关键字的定义,以及对关键字进行赋值功能。 [0045] entry module test cases defined keywords for protocol testing software, and keyword assignment functions.

[0046] 负载测试模块针对被测试软件的各个模块进行压力测试。 [0046] Load test module for each stress test software module being tested.

[0047] 回归测试模块针对测试问题较多的被测软件的模块进行回归测试。 [0047] regression testing regression testing module for testing the more problematic tested software modules.

[0048] 数据分析模块利用数据挖掘算法对测试结果进行分析,得到被测试软件的薄弱环节,并形成被测试软件的模块健壮性图表。 [0048] Data analysis module using data mining algorithms to analyze the test results to obtain the test software is weak link, and form a test chart software module robustness.

[0049] 数据存储模块用于存储测试用例,以及测试结果。 [0049] The data storage means for storing test, and test results.

[0050] 记录日志模块记录被测试软件在整个收发信息的过程中的日志信息。 [0050] The log module records log information by the test software in the process information in the entire transceiver.

[0051] 二、自动化测试实现 [0051] Second, implement automated testing

[0052] 1)测试人员首先选择测试软件与被测试软件的通信方式,确认两个软件能够进行网络通信。 [0052] 1) the test software tester with the first selected communication test software, the software can be confirmed that two network communication.

[0053] 2)测试人员添加关键字名称、关键字在报文中的位置、关键字的值和反馈报文标记,如表1所示。 [0053] 2) Add keywords tester name, keyword location in the packet, the keyword tag and feedback packets, as shown in Table 1. L0055」 表1 L0055 "Table 1

Figure CN106155881AD00071

[0056] 3)设置反馈报文的格式提交后,测试软件会生成相应关键字的判断逻辑,反馈报文的格式如表2所示。 After [0056] 3) Set the format of feedback message submission, the test software generates the keyword determination logic, the feedback packet format as shown in Table 2.

Figure CN106155881AD00072

Figure CN106155881AD00081

[0058] 表2 [0058] TABLE 2

[0059] 反馈报文的格式是根据通信协议设定的,不是固定的长短,根据上述反馈报文的格式生成反馈报文。 [0059] The feedback message formats are set in accordance with a communication protocol, not a fixed length, generating a feedback packet according to the feedback packet format.

[0060] 表2中的反馈报文标记相当于协议的标记字段,如,反馈报文标记1代表报文头字,反馈报文标记2代表报文中设备状态字。 [0060] The feedback message corresponding to the protocol in Table 2 labeled tag field, e.g., feedback message numeral 1 indicates the packet header word, feedback message marking device status word represents packet.

[0061] 通过在测试软件中输入的相应关键字,测试软件首先获取反馈报文关键字的个数,测试软件预先申请一片存储空间,然后根据输入的反馈关键字段形成相应数目的各自的缓冲区,软件对该些缓冲区进行访问,遇到匹配的关键字就对报文进行逻辑判断,最后形成相应的反馈报文。 [0061] By the keyword entered into test software, the test software first obtain the number of feedback packets keywords, the test application software previously stored in a space, then a corresponding number of the respective buffer segment in accordance with the feedback input key area, some of the software buffers visit, met on keyword matching packets logical judgment, the final formation of the corresponding feedback message.

[0062] 比如反馈报文有四个字段,分别为字段1、字段2、字段3和字段4,相应地形成四个缓冲区,字段1的缓冲区,字段2的缓冲区,字段3的缓冲区,字段4的缓冲区,把用户输入的相应字段的内容分别存入该四个缓冲区中,AA放入字段1的缓冲区,BB放入字段2的缓冲区,CC放入字段3的缓冲区,DD放入字段4的缓冲区,根据表格的匹配形成反馈数据,然后对被测试软件的反馈报文进行分四个字段的解析,与缓冲区的内容进行匹配,如果不匹配, 则将不匹配的字段记录到日志中,并把该次测试用例的发送数据、正确反馈报文、实际反馈报文和测试结果记录到数据库中,结束该次用例的测试。 [0062] For example, the feedback packet has four fields, namely a field 1, field 2, field 3, and field 4, are formed correspondingly four buffer buffer, the buffer field 1, field 2, field buffer 3 area, field buffer 4, the contents of the corresponding input field of the user are stored in the four buffers, AA into the buffer field 1, BB into the buffer field 2, field 3 is placed in the CC buffer, DD into field buffer 4 is formed in accordance with feedback data matching table, and then is subjected to feedback message analytical test software four sub fields, and the contents of the buffer to match, if not matched, the field does not match the record to the log, and sends the data of the test times, the correct feedback message, the feedback message and the actual test results are recorded in the database, the end of the test times with embodiments. 下次输入可能BB为放入字段1的缓冲区,CC放入字段2的缓冲区,AA放入字段3的缓冲区,DD放入字段4的缓冲区,那么测试软件会根据新的输入放入到相应缓冲区中,若缓冲区中已经有相应的数值,那么缓冲区不会添加重复数据。 BB is likely to enter into the next field buffer 1, CC field into the buffer 2, AA into field buffers 3, DD buffer 4 into the field, then the software will be put to test in accordance with the new input into the respective buffer, if the buffer has a corresponding value, then the buffer will not add duplicate data. 逻辑判断时,只针对当前输入值有效,之前形成的发送数据与反馈数据被放到数据库中,供后续的回归测试使用。 When the determination logic, the input value is valid only for the current, prior to the formation of the transmission data and feedback data into the database, for subsequent use in regression testing.

[0063] 4)在测试软件中自动生成逻辑判断代码,当目标机的报文到达测试机时,测试机会根据测试人员提交的内容进行判断,并给目标机相应的反馈。 [0063] 4) Analyzing logic automatically generate software code testing, when the target packet arrival testing machine, determined according to the test opportunities for testing the content submitted by the person, and corresponding feedback to the target machine.

[0064] 5)利用测试结果记录软件,获取被测试软件单次通信的结果信息,经过测试结果记录软件分析,把该次测试结果传送给自动化测试软件,完成本次测试,并把测试用例与测试结果存入数据库中。 [0064] 5) Test results are reported using the software, the software acquires the information about the test results of a single communication, the test results after software analysis records, to the test result to automated testing software, the completion of this test, and the test cases test results are stored in the database.

[0065] 三、测试结果分析 [0065] Third, the analysis of test results

[0066] 针对第二步获取的测试结果,数据分析模块按照数据报文标记以及测试结果进行数据分类与统计,反馈报文中涵盖了测试结果,对反馈报文相应字段进行解析,就会得到测试结果,把测试结果与期望结果相匹配,统计成功与失败的用例数目及数据,然后计算失败用例在被测试软件的功能模块的成功用例数乘以该功能模块在被测试软件的权重的值,判断被测试软件是否还需要加强测试。 [0066] The test results for the second step of acquisition, data analysis module according to the data packets marked with the classification data and statistical test results, the feedback packet covers the test results, the corresponding field in the feedback message parsing, get test results, the test result with the expected result match statistics success and failure by Example number and data, and then calculates the failure use cases weights test software value is multiplied by the function module successfully by the number of cases the test software function module in , it was tested to determine whether the software also need to strengthen testing. 通过图表的方式反应被测试软件的各个模块的健壮程度,回归测试模块会自动利用失败的结果对被测试软件的部分功能进行回归测试,若关键字的值是一个范围,在回归测试过程中,自动化测试软件会自动调整数值对被测试软件进行测试。 The reaction is graphically by the degree of robustness of the test software modules, regression testing module will automatically be tested portion of the functionality of the software using regression testing result of the failure, if the key value is a range, the regression testing process, automated testing software will automatically adjust the value of the test software for testing. 同时,设计人员可以在自动化测试软件中设置测试时间间隔,对被测试软件进行压力测试。 At the same time, designers can set the time interval in test automation test software, test software for the pressure test.

[0067] 例如,软件A为测试软件,软件B为被测试的嵌入式软件,软件A与软件B之间选择UDP(User Datagram Protocol,用户数据包协议)通信方式,测试软件A中填写相应的软件B所在的IP地址等网络信息,启用UDP通信方式。 [0067] For example, software for testing software A, B is software embedded software to be tested, select UDP between the software A and the software B (User Datagram Protocol, User Datagram Protocol) communication, software test A respective fill B IP address and other software where network information, enable UDP communication.

[0068] 将通信协议中要求的协议字段0Χ0Α,0Χ0Β,0X0C,OXOC组成发送报文。 [0068] The communication protocol required by the protocol field 0Χ0Α, 0Χ0Β, 0X0C, OXOC composition send packets.

[0069] 1)在测试软件A中输入0Χ0Α,对应关键字字段为1,对应的反馈报文为0ΧΑΑ。 [0069] 1) A test software input in 0Χ0Α, corresponding to the key field is 1, the corresponding feedback message is 0ΧΑΑ.

[0070] 在测试软件A中输入0Χ0Β,对应关键字字段为2,对应的反馈报文标记为0ΧΒΒ。 [0070] In the test software 0Χ0Β input A, the corresponding key field 2, the corresponding feedback message is marked as 0ΧΒΒ.

[0071] 在测试软件A中输入0X0C,对应关键字字段为3,对应的反馈报文标记为0XCC。 [0071] In the test software 0X0C input A, the corresponding key field 3, the corresponding feedback message is marked as 0XCC.

[0072] 在测试软件A中输入0X0D,对应关键字字段为4,对应的反馈报文标记为0XDD。 [0072] In the test software 0X0D input A, the key field of the corresponding 4, the corresponding feedback message is marked as 0XDD.

[0073] 反馈报文对应0ΧΑΑ,对应反馈报文字段位置为1,字段值为OXAAl。 [0073] The feedback message corresponding to 0ΧΑΑ, corresponding to the position feedback packet field 1, field value OXAAl.

[0074] 反馈报文对应OXBB,对应反馈报文字段位置为2,字段值为OXBBl。 [0074] The feedback message corresponding to OXBB, corresponding to the position of the feedback packet field 2, field value OXBBl.

[0075] 反馈报文对应0XCC,对应反馈报文字段位置为3,字段值为OXCCl。 [0075] The feedback message corresponding to 0xCC, corresponding to the position of the feedback packet field 3, field value OXCCl.

[0076] 反馈报文对应OXDD,对应反馈报文字段位置为4,字段值为OXDDl。 [0076] The feedback message corresponding to OXDD, the corresponding feedback message field position 4, the field value OXDDl.

[0077] 2)测试软件A输入结束,测试软件A发送的报文为{0X0A,0X0B,0X0C,0X0D}。 End [0077] 2) A input test software, the test software A is transmitted packets {0X0A, 0X0B, 0X0C, 0X0D}. 测试软件A接受被测试软件B反馈的报文,对反馈的报文进行解析,在测试软件A中对输入的关键字形成4个缓冲区,分别对四个缓冲区进行匹配,期待的正确报文结果为{0XAA1,0XBB1, 0XCC1,OXDD1} 〇 A packet acceptance testing software test the software is fed back. B, analyzing feedback packets, forming four buffers keywords entered in the A test software, respectively match four buffers, the expected correct packet Wen result {0XAA1,0XBB1, 0XCC1, OXDD1} square

[0078] 若反馈报文解析第一个字段为OXAAl,第二个字段为OXBBl,第三个字段为OXCCl, 第四个字段为0XDD1,则该反馈报文是正确的。 [0078] If the feedback message parsing a first field OXAAl, the second field is OXBBl, the third field is OXCCl, the fourth field is 0XDD1, the feedback message is correct. 若其中有一个字段匹配失败,那么该反馈报文为错误的,测试用例执行是失败的 If there is one field in which the match fails, then the feedback message is wrong, test case execution is a failure

[0079] 3)在测试软件A中统计失败的测试用例数,如被测试软件B的功能模块B1,总用例数为100,失败用例数为20,功能模块B2,总用例数为100,失败用例数为5,功能模块Bl 的权重为20 %,功能模块B2的权重为80 %。 [0079] 3) the number of test cases software A statistical failure, such as the functional block B1 test software of B, with a total number of cases is 100, the failure by the number of cases is 20, the functional module B2, always use the number of cases 100, failed 5 with the number of cases, the right functional module Bl weight of 20% weight of the right functional module B2 is 80%.

[0080] 测试用例成功情况:80*0. 2+95*0. 8 = 92,说明该测试用例运行比较成功,如果规定到达100才算成功,那么需要修改被测试软件,直到计算结果为100,那么该被测试软件才算通过该次测试。 [0080] successful test case: 80 * 02 + 95 * 08 = 92, indicating that the more successful test run, to be successful if the predetermined reached 100, then the need to modify the software to be tested, until the calculation result is 100 , then the software is considered to be tested by the test.

[0081] 下面通过列举几个具体的实施例详细介绍本发明提供的一种针对VxWorks平台的应用程序测试方法和系统。 [0081] The following describes a present invention provides a method and system testing applications for details on VxWorks by enumerating several specific embodiments.

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

[0083] 详细介绍本发明实施例提供的一种针对VxWorks平台的应用程序测试方法。 [0083] Introduction of a detail of the embodiment of the present invention provides for a method of testing applications on VxWorks. 所述方法应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接。 The test method is applied using the application on the application under test terminals of the testing environment of the target terminal, the target terminal uses VxWorks platform, Windows platform using the test terminal, the terminal and the test target terminal wired connected.

[0084] 参照图3,示出了本发明实施例中一种针对VxWorks平台的应用程序测试方法的步骤流程图。 [0084] Referring to Figure 3, there is shown a flow diagram of one embodiment of the present invention, the step of testing method for the application on VxWorks embodiment.

[0085] 步骤100,根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息。 [0085] Step 100, according to the test protocol set keyword information test in the test application test terminal.

[0086] 所述测试协议可以为现有的应用程序测试采用的协议,具体的测试协议中可以包含至少一个测试用例,每个测试用例中可以包括与测试用例相关的关键字信息。 [0086] The test protocol may test for an existing application protocol employed, the particular test protocol may comprise at least one test, each test case may include information related to the test case keywords.

[0087] 所述关键字信息可以包括测试用例采用的关键参数,即被测应用程序在执行测试用例时需要输入或者需要输出的关键参数等。 [0087] The key information may include a test using a key parameter, i.e. the application under test to enter the test case, or when performing critical parameters required output.

[0088] 步骤102,根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件。 [0088] Step 102, according to the test protocol and the key information generation information corresponding to the keyword determination condition logic.

[0089] 与关键字信息对应的逻辑判断条件可以为针对输入的关键字信息以及被测应用程序反馈的测试报文,判断被测应用程序执行测试用例是否成功。 [0089] Keyword and logic determination condition information corresponding to the keyword information may be entered and for the application under test feedback packet, it is determined whether or not the application under test successfully executed.

[0090] 步骤104,根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端。 [0090] Step 104, according to the measured application logic on the determination condition and the target terminal received test packets sent from the feedback generating test information, and transmitted to the target terminal.

[0091] 所述测试反馈信息用于表示被测应用程序在执行测试用例之后的测试结果。 [0091] The feedback information indicating test the application under test results after the test case execution.

[0092] 步骤106,接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果;并对所述测试结果进行分析,完成VxWorks平台的应用程序测试。 [0092] Step 106, the receiving application on the test target sent by the terminal, according to the test result information generated by the feedback test; and the test results are analyzed, application testing completed on VxWorks.

[0093] 综上所述,本发明实施例中的技术方案根据测试协议和设定的关键信息生成与关键字信息对应的逻辑判断条件,利用逻辑判断条件对被测应用程序的测试报文进行自动化测试,生成测试反馈信息,进一步对被测应用程序根据测试反馈信息生成测试结果进行分析,在被测应用程序无应用界面或应用界面少,且被测应用程序存在较多逻辑的情况下,实现了应用程序的测试自动化。 [0093] In summary, embodiments of the present invention the technical solution according to the key information generation and logic determination condition information corresponding to the keyword and setting the test protocol using the logical determination condition of the application under test packets will be automated testing, test generation feedback information further analyzed according to the application under test feedback information generating test result, no less interface or application interface application in the application under test, and the case where there are more logical application under test, to achieve a test automation application.

[0094] 实施例二 [0094] Second Embodiment

[0095] 详细介绍本发明实施例提供的一种针对VxWorks平台的应用程序测试方法。 [0095] Introduction of a detail of the embodiment of the present invention provides for a method of testing applications on VxWorks. 所述方法应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接。 The test method is applied using the application on the application under test terminals of the testing environment of the target terminal, the target terminal uses VxWorks platform, Windows platform using the test terminal, the terminal and the test target terminal wired connected.

[0096] 参照图4,示出了本发明实施例中一种针对VxWorks平台的应用程序测试方法的步骤流程图。 [0096] Referring to Figure 4, there is shown a flow diagram of one embodiment of the present invention, the step of testing method for the application on VxWorks embodiment.

[0097] 步骤200,选择所述测试终端上的测试应用程序与所述目标终端上的被测应用程序之间的通信方式。 [0097] Step 200, selecting the communication test between the test terminal and the application on the application under test on the target terminal.

[0098] 所述测试应用程序与被测应用程序之间的通信方式可以包括TCP (Transmission Control Protocol,传输控制协议)和UDP等等,本发明实施例对测试应用程序与被测应用程序之间的通信方式选择不作限制。 [0098] communication between the application and test the application under test may include TCP (Transmission Control Protocol, Transmission Control Protocol) and UDP and the like, examples of the embodiment of the present invention between the test application and the application under test a communication mode selection is not limited.

[0099] 步骤202,根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息。 [0099] Step 202, according to the test protocol set keyword information test in the test application test terminal.

[0100] 所述测试协议可以为现有的应用程序测试采用的协议,具体的测试协议中可以包含至少一个测试用例,每个测试用例中可以包括与测试用例相关的关键字信息。 [0100] The test protocol may test for an existing application protocol employed, the particular test protocol may comprise at least one test, each test case may include information related to the test case keywords.

[0101] 所述关键字信息可以包括测试用例采用的关键参数,即被测应用程序在执行测试用例时需要输入或者需要输出的关键参数等。 [0101] The key information may include a test using a key parameter, i.e. the application under test to enter the test case, or when performing critical parameters required output.

[0102] 优选地,所述关键字信息可以包括:关键字名称、关键字位置、关键字数值和反馈报文标记等。 [0102] Preferably, the key information may include: name keyword, keyword location, keywords, and numerical feedback packet marking.

[0103] 步骤204,根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件。 [0103] Step 204, according to the test protocol and the key information generation information corresponding to the keyword determination condition logic.

[0104] 与关键字信息对应的逻辑判断条件可以为针对输入的关键字信息以及被测应用程序反馈的测试报文,判断被测应用程序执行测试用例是否成功。 [0104] Keyword and logic determination condition information corresponding to the keyword information may be entered and for the application under test feedback packet, it is determined whether or not the application under test successfully executed.

[0105] 步骤206,根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端。 [0105] Step 206, the test packets to generate feedback information according to the logic test the application under test on the determination condition and the target terminal receives the sent and transmitted to the target terminal.

[0106] 所述测试反馈信息用于表示被测应用程序在执行测试用例之后的测试结果。 [0106] The feedback information indicating test the application under test results after the test case execution.

[0107] 步骤208,接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果,并对所述测试结果进行分析。 [0107] Step 208, the receiving application on the test target sent by the terminal, according to the feedback information generating test result of the test, and the test results were analyzed.

[0108] 优选地,所述步骤208中对所述测试结果进行分析可以为: [0108] Preferably, the step 208 for analysis of the test result may be:

[0109] 对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息。 [0109] performed on the test result packet field analysis to obtain an analysis result, the analysis and presentation information identifying the application under test results of various functional modules by way of the chart.

[0110] 步骤210,根据所述被测应用程序的各个功能模块的信息确定不满足测试要求的功能t吴块。 [0110] Step 210, it is determined does not meet the test requirements according to the function t Wu block information of each module of the application under test.

[0111] 所述被测应用程序可以包括多个功能模块,在对被测应用程序进行测试时,可以有目的地针对其中的功能模块进行测试。 The [0111] application under test may include a plurality of functional modules, at the time of testing the application under test, the destination can be tested for which functional modules. 其中每个功能模块的信息可以表示每个功能模块各自的状态等情况。 Wherein the information of each function module may represent a case where each functional module respective status.

[0112] 步骤212,对所述不满足测试要求的功能模块进行回归测试。 [0112] Step 212, the function module does not meet the test requirements for regression testing.

[0113] 综上所述,本发明实施例中的技术方案根据测试协议和设定的关键信息生成与关键字信息对应的逻辑判断条件,利用逻辑判断条件对被测应用程序的测试报文进行自动化测试,生成测试反馈信息,进一步对被测应用程序根据测试反馈信息生成测试结果进行分析,在被测应用程序无应用界面或应用界面少,且被测应用程序存在较多逻辑的情况下,实现了应用程序的测试自动化。 [0113] In summary, embodiments of the present invention the technical solution according to the key information generation and logic determination condition information corresponding to the keyword and setting the test protocol using the logical determination condition of the application under test packets will be automated testing, test generation feedback information further analyzed according to the application under test feedback information generating test result, no less interface or application interface application in the application under test, and the case where there are more logical application under test, to achieve a test automation application.

[0114] 实施例三 [0114] Example three

[0115] 详细介绍本发明实施例提供的一种针对VxWorks平台的应用程序测试系统。 [0115] Introduction of a detail to an embodiment of the test system for the application of the present invention on VxWorks. 所述系统应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接。 The test system is applied using the application on the application under test terminals of the testing environment of the target terminal, the target terminal uses VxWorks platform, Windows platform using the test terminal, the terminal and the test target terminal wired connected.

[0116] 参照图5,示出了本发明实施例中一种针对VxWorks平台的应用程序测试系统的结构示意图。 [0116] Referring to Figure 5, there is shown a schematic view of a configuration of the present invention for application testing system VxWorks platform embodiment.

[0117] 所述系统可以包括:关键字信息设定模块300,判断条件生成模块302,反馈信息生成模块304,测试结果分析模块306。 The [0117] system may include: a keyword information setting module 300, the determination condition generation module 302, a feedback information generation module 304, the test result analyzing module 306.

[0118] 下面分别详细介绍各模块的功能以及各模块之间的关系。 [0118] The following describes the relationship between the function of each module, and each module in detail.

[0119] 关键字信息设定模块300,用于根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息。 [0119] Keyword information setting module 300, test information for setting the keyword in the test application of the test terminal according to the test protocol.

[0120] 判断条件生成模块302,用于根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件。 [0120] generation condition determining module 302 for determining conditions according to the test protocol and the key information generation information corresponding to the keyword logic.

[0121] 反馈信息生成模块304,用于根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端。 [0121] Feedback information generation module 304, according to the measured application logic on the determination condition and the target terminal received test packets sent from the feedback generating test information, and transmitted to the target terminal.

[0122] 测试结果分析模块306,用于接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果;并对所述测试结果进行分析,完成VxWorks平台的应用程序测试。 [0122] Test results of the analysis module 306, for receiving the test application on the destination terminal sent, according to the test results generated feedback information; and the test results were analyzed on VxWorks complete application testing.

[0123] 综上所述,本发明实施例中的技术方案根据测试协议和设定的关键信息生成与关键字信息对应的逻辑判断条件,利用逻辑判断条件对被测应用程序的测试报文进行自动化测试,生成测试反馈信息,进一步对被测应用程序根据测试反馈信息生成测试结果进行分析,在被测应用程序无应用界面或应用界面少,且被测应用程序存在较多逻辑的情况下,实现了应用程序的测试自动化。 [0123] In summary, embodiments of the present invention the technical solution according to the key information generation and logic determination condition information corresponding to the keyword and setting the test protocol using the logical determination condition of the application under test packets will be automated testing, test generation feedback information further analyzed according to the application under test feedback information generating test result, no less interface or application interface application in the application under test, and the case where there are more logical application under test, to achieve a test automation application.

[0124] 实施例四 [0124] Fourth Embodiment

[0125] 详细介绍本发明实施例提供的一种针对VxWorks平台的应用程序测试系统。 [0125] Introduction of a detail to an embodiment of the test system for the application of the present invention on VxWorks. 所述系统应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接。 The test system is applied using the application on the application under test terminals of the testing environment of the target terminal, the target terminal uses VxWorks platform, Windows platform using the test terminal, the terminal and the test target terminal wired connected.

[0126] 参照图6,示出了本发明实施例中一种针对VxWorks平台的应用程序测试系统的结构示意图。 [0126] Referring to Figure 6, there is shown a schematic view of a configuration of the present invention for application testing system VxWorks platform embodiment.

[0127] 所述系统可以包括:关键字信息设定模块400,判断条件生成模块402,反馈信息生成模块404,测试结果分析模块406,功能模块确定模块408,回归测试模块410,通信方式选择模块412。 [0127] The system may include: a keyword information setting module 400, the determination condition generating module 402, a feedback information generation module 404, the test result analyzing module 406, module 408 determines the function module, regression testing module 410, selection module communicatively 412.

[0128] 下面分别详细介绍各模块的功能以及各模块之间的关系。 [0128] The following describes the relationship between the function of each module, and each module in detail.

[0129] 关键字信息设定模块400,用于根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息。 [0129] Keyword information setting module 400, test information for setting the keyword in the test application of the test terminal according to the test protocol.

[0130] 优选地,所述关键字信息可以包括:关键字名称、关键字位置、关键字数值和反馈报文标记。 [0130] Preferably, the key information may include: name keyword, keyword location, keywords, and numerical feedback message tag.

[0131] 判断条件生成模块402,用于根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件。 [0131] Analyzing condition generating module 402, configured to determine the conditions of the test protocol and in accordance with the key information generation information corresponding to the keyword logic.

[0132] 反馈信息生成模块404,用于根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端。 [0132] Feedback information generation module 404, according to the measured application logic on the determination condition and the target terminal received test packets sent from the feedback generating test information, and transmitted to the target terminal.

[0133] 测试结果分析模块406,用于接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果;并对所述测试结果进行分析,完成VxWorks平台的应用程序测试。 [0133] The test result analyzing module 406, for receiving the test application on the destination terminal sent, according to the feedback information generating test result of the test; and the test results were analyzed on VxWorks complete application testing.

[0134] 优选地,所述测试结果分析模块406对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息。 [0134] Preferably, the test result analyzing module 406 pairs of the test result packet field parsing, analysis results obtained and show the result of the analysis of each functional module identification application of the test chart by way information.

[0135] 功能模块确定模块408,用于在所述测试结果分析模块406对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息之后,根据所述被测应用程序的各个功能模块的信息确定不满足测试要求的功能模块。 [0135] Function module determination module 408, a message field for analyzing the test result of the test module 406 performs the analyzing results, obtained analysis result, to show the result of the analysis and identification of the application under test by graphically after each module's program, is determined does not meet the test requirements of functional modules each module's application of the test.

[0136] 回归测试模块410,用于对所述不满足测试要求的功能模块进行回归测试。 [0136] regression testing module 410 for performing regression testing of the function module does not meet the test requirements.

[0137] 通信方式选择模块412,用于在所述关键字信息设定模块400根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息之前,选择所述测试终端上的测试应用程序与所述目标终端上的被测应用程序之间的通信方式。 [0137] communication system selection module 412, a key information prior to the keyword information setting module 400 according to the test protocol in the test application of the test set of test terminal, the terminal selecting the test communication between the test application with the test application on the target terminal.

[0138] 综上所述,本发明实施例中的技术方案根据测试协议和设定的关键信息生成与关键字信息对应的逻辑判断条件,利用逻辑判断条件对被测应用程序的测试报文进行自动化测试,生成测试反馈信息,进一步对被测应用程序根据测试反馈信息生成测试结果进行分析,在被测应用程序无应用界面或应用界面少,且被测应用程序存在较多逻辑的情况下,实现了应用程序的测试自动化。 [0138] In summary, embodiments of the present invention the technical solution according to the key information generation and logic determination condition information corresponding to the keyword and setting the test protocol using the logical determination condition of the application under test packets will be automated testing, test generation feedback information further analyzed according to the application under test feedback information generating test result, no less interface or application interface application in the application under test, and the case where there are more logical application under test, to achieve a test automation application.

[0139] 对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 [0139] For system embodiments, since the method of the embodiment which is substantially similar, the description of a relatively simple, some embodiments of the methods see relevant point can be described.

[0140] 本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 [0140] In the present specification, various embodiments are described in a progressive way, differences from the embodiment and the other embodiments each of which emphasizes embodiment, various portions of the same embodiment of similarity between the embodiments refer to each other.

[0141] 以上对本发明实施例所提供的一种针对VxWorks平台的应用程序测试方法和系统,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 For application testing method and system VxWorks platform detail introduce a embodiment is provided [0141] or more embodiments of the present invention described herein through specific examples of the principles and embodiments of the invention are set forth in the above embodiment the description is intended to help understand the method and core idea of ​​the present invention; while those of ordinary skill in the art, according to the ideas of the present invention, there are changes in the specific embodiment and application of the embodiment, the sum described later, the present specification shall not be construed as limiting the present invention.

Claims (10)

1. 一种针对VxWorks平台的应用程序测试方法,其特征在于,所述方法应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接,所述方法包括: 根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息; 根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件; 根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端; 接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果;并对所述测试结果进行分析,完成VxWorks平台的应用程序测试。 CLAIMS 1. A method for application testing on VxWorks, characterized in that the method is applied to the application under the target terminal using the test environment for testing the application on the test terminal, the target terminal uses VxWorks platform, the terminal uses the Windows platform test, the test terminal and the target terminal using the wired connection, the method comprising: setting the key information in the test test application of the test terminal according to the test protocol ; according to the test protocol and the key information generation and logic determination condition corresponding to the keyword information; according to the measured application logic on the determination condition and the target terminal received the test packets sent feedback information to generate test packets, and transmitted to the target terminal; test application on the receiving terminal sent by the target, the feedback information generated according to the test result of the test; and the test results were analyzed to complete VxWorks platform application testing.
2. 根据权利要求1所述的方法,其特征在于,所述对所述测试结果进行分析,包括: 对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息。 2. The method according to claim 1, wherein the performing the analysis of test results, comprising: a message field analyzing the test results to obtain an analysis result, and graphically demonstrated by the said analysis information of each module measured result of the application identifier.
3. 根据权利要求2所述的方法,其特征在于,所述对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息之后,所述方法还包括: 根据所述被测应用程序的各个功能模块的信息确定不满足测试要求的功能模块; 对所述不满足测试要求的功能模块进行回归测试。 3. The method according to claim 2, wherein said parsing the message field of the test results, the obtained analysis result, to show the application under test and the analysis results graphically identified by the after the information of each function module, the method further comprising: determining module does not meet the test requirements according to the information of the function of each module of the application under test; the function module does not meet the test requirements for regression testing.
4. 根据权利要求1所述的方法,其特征在于,所述根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息之前,所述方法还包括: 选择所述测试终端上的测试应用程序与所述目标终端上的被测应用程序之间的通信方式。 4. The method according to claim 1, characterized in that, prior to the test set in the keyword information test application of the test terminal according to the test protocol, the method further comprising: selecting the test communication between the test application on the terminal and the application under test on the target terminal.
5. 根据权利要求1所述的方法,其特征在于,所述关键字信息包括:关键字名称、关键字位置、关键字数值和反馈报文标记。 5. The method according to claim 1, wherein said keyword information comprising: a keyword name, keyword location, keywords, and numerical feedback message tag.
6. -种针对VxWorks平台的应用程序测试系统,其特征在于,所述系统应用于利用测试终端上的测试应用程序对目标终端上的被测应用程序进行测试的环境,所述目标终端采用VxWorks平台,所述测试终端采用Windows平台,所述测试终端与所述目标终端采用有线方式连接,所述系统包括: 关键字信息设定模块,用于根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息; 判断条件生成模块,用于根据所述测试协议和所述关键字信息生成与所述关键字信息对应的逻辑判断条件; 反馈信息生成模块,用于根据所述逻辑判断条件和接收到的所述目标终端上的被测应用程序发来的测试报文生成测试反馈信息,并发送至所述目标终端; 测试结果分析模块,用于接收所述目标终端上的被测应用程序发来的,根据所述测试反馈信息生成的测试结果; 6. - kind of test system for application on VxWorks, wherein said system is applied to the application under the target terminal using the test environment for testing the application on the test terminal, the target terminal uses VxWorks platform, the terminal uses the Windows platform test, the test terminal and the target terminal using the wired connection, the system comprising: a key information setting module, configured to test the application of the test terminal in accordance with the test protocol on the test set keyword information; determining condition generating module, according to the test protocol and the key information to generate the key information corresponding to the logical determination condition; feedback information generation module, according to the analyzing conditions and said logic test application on the target terminal received test packets sent from the feedback generating test information, and transmitted to the target terminal; test result analyzing module, for receiving the target terminal measured sent by the application, the test according to the feedback information generated by the test results; 对所述测试结果进行分析,完成VxWorks平台的应用程序测试。 Analyzing the test results, the test is completed the application on VxWorks.
7. 根据权利要求6所述的系统,其特征在于,所述测试结果分析模块对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息。 7. The system according to claim 6, wherein the test result of the test result analyzing module packet field is parsed to obtain the analysis result, and graphically demonstrated by the analysis results are identified each module's measurement applications.
8. 根据权利要求7所述的系统,其特征在于,所述系统还包括: 功能模块确定模块,用于在所述测试结果分析模块对所述测试结果的报文字段进行解析,得到解析结果,并通过图表的方式展现所述解析结果标识的被测应用程序的各个功能模块的信息之后,根据所述被测应用程序的各个功能模块的信息确定不满足测试要求的功能丰吴块; 回归测试模块,用于对所述不满足测试要求的功能模块进行回归测试。 8. The system according to claim 7, characterized in that the system further comprises: determining function module means for analyzing the text segment of the message analysis module test results to the test results, analysis results obtained Thereafter, the information of each module and the measured result of the application identified by the analysis show graphically determined does not meet the test requirements Feng Wu functional block based on the information of each module of the application under test; regression testing module for performing regression testing of the function module does not meet the test requirements.
9. 根据权利要求6所述的系统,其特征在于,所述系统还包括: 通信方式选择模块,用于在所述关键字信息设定模块根据测试协议在所述测试终端的测试应用程序上设定测试用例的关键字信息之前,选择所述测试终端上的测试应用程序与所述目标终端上的被测应用程序之间的通信方式。 9. The system according to claim 6, characterized in that the system further comprises: a communication mode selection means for setting the key information in the module according to the test protocol in the test application test terminal before the test set keyword information, selecting the test communication between the test application on the terminal and the application under test on the target terminal.
10. 根据权利要求6所述的系统,其特征在于,所述关键字信息包括:关键字名称、关键字位置、关键字数值和反馈报文标记。 10. The system according to claim 6, wherein said keyword information comprising: a keyword name, keyword location, keywords, and numerical feedback message tag.
CN201510138374.4A 2015-03-26 2015-03-26 For application testing methods and systems VxWorks platforms CN106155881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510138374.4A CN106155881B (en) 2015-03-26 2015-03-26 For application testing methods and systems VxWorks platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510138374.4A CN106155881B (en) 2015-03-26 2015-03-26 For application testing methods and systems VxWorks platforms

Publications (2)

Publication Number Publication Date
CN106155881A true CN106155881A (en) 2016-11-23
CN106155881B CN106155881B (en) 2018-09-11

Family

ID=57339683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510138374.4A CN106155881B (en) 2015-03-26 2015-03-26 For application testing methods and systems VxWorks platforms

Country Status (1)

Country Link
CN (1) CN106155881B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013391A (en) * 2007-02-02 2007-08-08 北京中星微电子有限公司 Test platform and method for testing embedded file system and protocol
CN101145130A (en) * 2007-08-02 2008-03-19 中兴通讯股份有限公司 Simple network management protocol software test device and test method
US20080133964A1 (en) * 2006-09-11 2008-06-05 Rogers Timothy A Remote test station configuration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133964A1 (en) * 2006-09-11 2008-06-05 Rogers Timothy A Remote test station configuration
CN101013391A (en) * 2007-02-02 2007-08-08 北京中星微电子有限公司 Test platform and method for testing embedded file system and protocol
CN101145130A (en) * 2007-08-02 2008-03-19 中兴通讯股份有限公司 Simple network management protocol software test device and test method

Also Published As

Publication number Publication date
CN106155881B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
US8006180B2 (en) Spell checking in network browser based applications
US7890814B2 (en) Software error report analysis
Nagaraj et al. Structured comparative analysis of systems logs to diagnose performance problems
US9118549B2 (en) Systems and methods for context management
US20080281809A1 (en) Automated analysis of user search behavior
US9069903B2 (en) Multi-platform test automation enhancement
CN102244594B (en) Network simulation technology in manual and automated testing tools
US8745641B1 (en) Automatic verification and anomaly detection in a representational state transfer (REST) application programming interface
US7877732B2 (en) Efficient stress testing of a service oriented architecture based application
EP2847667B1 (en) Automotive diagnostic server
CN1866206A (en) Generating performance tests from UML specifications using Markov chains
JP2012157056A (en) Protocol emulator
US20100333172A1 (en) Method, apparatus and system for monitoring database security
CN100451989C (en) Software testing system and testing method
CN101478449B (en) Protocol automatic test method and system thereof
US8793660B2 (en) Automated testing of programming code for a web service
US7536599B2 (en) Methods and systems for validating a system environment
KR20110013679A (en) Web based software debugger for remote debugging
CN1780236A (en) Universal testing system and method for telecommunication intelligent service
US20090089039A1 (en) System and method of emulating functionality of a web service
CN103530216B (en) Pcie verification system based on one kind of verification methodology uvm
US7996822B2 (en) User/process runtime system trace
CN102135938B (en) Software product testing method and system
US9363310B2 (en) Standard commands for native commands
CN101447991B (en) Test device used for testing intrusion detection system and test method thereof

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01