[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105637500A - Testing a web service using inherited test attributes - Google Patents

Testing a web service using inherited test attributes Download PDF

Info

Publication number
CN105637500A
CN105637500A CN201380080299.XA CN201380080299A CN105637500A CN 105637500 A CN105637500 A CN 105637500A CN 201380080299 A CN201380080299 A CN 201380080299A CN 105637500 A CN105637500 A CN 105637500A
Authority
CN
China
Prior art keywords
test
network service
test elements
elements
template
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
CN201380080299.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.)
Nissin Foods Holdings Co Ltd
Hewlett Packard Enterprise Development LP
Original Assignee
Hewlett Packard Enterprise Development LP
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 Hewlett Packard Enterprise Development LP filed Critical Hewlett Packard Enterprise Development LP
Publication of CN105637500A publication Critical patent/CN105637500A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for testing a web service using inherited test attributes is described. The method includes generating a test template for a web service entry point, in which a test template comprises a number of test attributes, generating a number of test elements based on the test template, in which a test element inherits the number of test attributes, and executing the number of test elements.

Description

Use the testing attribute inherited that network service is tested
Background technology
Many tissues use network service to share information by network. Such as, company and client can be connected to each other and share information via network service, and implement operation and transaction. Along with these network services extension provide new feature and be suitable to commercial affairs tissue, can test network service to guarantee abundance and functional. Therefore, test can be implemented to determine whether network service runs as expected.
Accompanying drawing explanation
The various examples of accompanying drawing diagram principles described herein, and be a part for description. Illustrated example is not intended to scope of the claims.
Fig. 1 is the schematic diagram of the system for using the testing attribute of succession that network service is tested of an example according to principles described herein.
Fig. 2 is the flow chart of the method for using the testing attribute of succession that network service is tested of an example according to principles described herein.
Fig. 3 is the schematic diagram of the level of the test system of an example according to principles described herein.
Fig. 4 is the flow chart of the other method for using the testing attribute of succession that network service is tested of another example according to principles described herein.
Fig. 5 is the schematic diagram of the system for using the testing attribute of succession that network service is tested of an example according to principles described herein.
Fig. 6 is the test report of an example according to principles described herein.
Running through whole accompanying drawing, identical accompanying drawing labelling represents similar but not necessarily identical element.
Detailed description of the invention
Network service can allow company and client are connected to each other by network and share information. Network service can also aid in networking. Such as, via network service, user may participate in social networking activities and affairs, and operates together with other users in other network activitys. In either case, network service can be to tissue or the valuable assets of other users. Maintain quality network service and be probably challenging task. Such as, when connecting new business, the quick and safe extension of network service is probably desired. A kind of extension of network service it may also be desirable to extra operating parameter, its change being likely to cause network service. Additionally, be also desired with the backward compatibility of the network service of version before for supporting existing connection. In order to meet the two needs, network service can realize regression test and functional test. Regression test can play a role when the life cycle guaranteeing whole network service maintains the quality of network service. Such as, fault, virus, program error or other elements can forbid properly functioning network service. Via regression test, can recognize that, process and correct these factors. Regression test can be additionally used in whether the change determining the special characteristic on network service affects the further feature of network service. By contrast, functional test can be used for determining whether the operation enabled by network service runs as expected. Although regression test and functional test potentially contribute to the improvement of network service, safety and stable function, but would be likely to occur the many complexity making regression test be difficult to.
Such as, maintain the big set regression tested cost that abundance covering level is provided and make great efforts possible too high. Therefore, available regression test and functional test external member are likely to be of the covering of reduction, the issue of delay or its combination. One maximum challenge of current method is to provide regression test and the functional test of the growth supporting network service. Additionally, greatly set regression test and functional test potentially include that efficiency is low and the redundancy of very difficult renewal. Such as, according to current method, test the independently executable all properties associated with this test. Therefore, can include any renewal of protos test suite PROTOS updating each independent test in external member.
Therefore, present disclosure describes the system and method for using the testing attribute of succession that network service is tested. More specifically, present disclosure describes the system that the network service enabling test information to be reused rather than to rewrite is tested. This system achieves the hierarchy making testing attribute be able to reuse that. Owing to can inherit existing testing attribute from source, rather than generating testing attribute with each example of test elements, therefore do so can simplify the generation of new test. Simplifying generating of new test by this way allows protos test suite PROTOS to increase while retaining retainability.
Use system and method described herein, the test template including multiple testing attribute can be generated. For test network service function performed operation test elements can Inherit Testing attribute, and the testing attribute that can be modified in test elements customizes, and keeps the testing attribute in test template not revise. Similarly, based on, when the change of network service is updated test template, via the succession between test template and test elements, the testing attribute in the test elements being changed impact being updated. As will be described below, when performing when the operation of test elements, testing attribute can be inherited by test elements. Therefore, performing before test elements, any renewal that test template is made can operationally the term of execution inherited by test elements.
This specification describes a kind of method for using the testing attribute of succession that network service is tested. The method comprises the steps that the test template generating network service entrance. Test template can include multiple testing attribute. The method may also include that and generates multiple test elements based on test template. Test elements can inherit multiple testing attribute. The method comprises the steps that the multiple test elements of execution.
This specification describes a kind of system for using the testing attribute of succession that network service is tested. This system can include processor and be communicatively coupled to the memorizer of this processor. This memorizer can include configuration-direct module, for storing multiple test templates of multiple network service entrance. Test template can include the multiple testing attributes for describing network service entrance. Memorizer may also include resolver, is used for generating multiple test elements so that network service to be tested. Multiple test elements can inherit multiple testing attributes from multiple test templates. Memorizer may also include performer, is used for performing multiple test elements.
This specification describes a kind of computer program for using the testing attribute of succession that network service is tested. This computer program can include computer-readable recording medium, and this computer-readable recording medium can include the computer usable program code being included in. Computer usable program code may be included in when being performed by processor for generating the computer usable program code of the test template of network service entrance. Test template includes multiple testing attribute. Computer usable program code may be included in when being performed by processor for generating the computer usable program code of multiple test elements based on test template. Test elements inherits multiple testing attributes. Computer usable program code may be included in when being performed by processor for multiple test elements assemble the computer usable program code of multiple test case. Computer usable program code may be included in when being performed by processor for performing the computer usable program code of multiple test case. Computer usable program code may be included in the computer usable program code generating test report by processor when being performed for the execution based on test case.
By restricting the redundancy in protos test suite PROTOS, reducing time and the cost of safeguarding complicated protos test suite PROTOS and improve the speed that user can be connected to each other via network service possibly, system and method described herein is probably useful.
Using in this specification and appended claim, term " network service " can include between two electronic equipments by any method of network service.
Further, use in this specification and appended claim, the method that term " entrance " or " network service entrance " can refer to access network services. Such as, the label in webpage or webpage can be the entrance of network service. In another example, the ability that information is published to website can be an entrance, and the ability searching for website can be another entrance.
Further, using in this specification and appended claim, term " test ", " test " or similar term can refer to functional test, regression test or its combination. The similar test program that functional test and regression test can be is target with the state of different network services. Such as, network service can enable a kind of operation. Functional test may indicate that whether operation performs as expected. By contrast, regression test may indicate that at whole service lifecycle, and whether the change of the special characteristic of network service affects the further feature of network service.
Further, using in this specification and appended claim, term " multiple " or similar language can include 1 and arrive infinite any positive number; Zero is not several, but does not count.
In the following description, for the purpose explained, in order to provide the understanding completely to system and method, set forth many details. But, will be apparent to those skilled in the art, this device, system and method can be put into practice when not having these details. Quoting of " example " or similar language is meaned that described special characteristic, structure or characteristic include at least this example by description, but in other examples not necessarily.
Turning now to accompanying drawing, Fig. 1 is the schematic diagram of the system (100) for using the testing attribute of succession that network service is tested of an example according to principles described herein. System (100) can be used on any data and processes in scene, such as include: cloud computing service (such as, namely software service (SaaS), namely platform services (PaaS), namely infrastructure service (IaaS), application programming interfaces (API) namely service (APIaaS)), the network service of other form or its combination. Further, system (100) can be used in public cloud network, privately owned cloud network, mixed cloud network, the network of other form or its combination. In one example, system (100) method provided is taken as the service provided by such as third party by network. In another example, the method that system (100) provides is performed by local administrator.
Further, system (100) can be used in single computing equipment. Processing in scene in these data, single computing equipment can use the method for association described herein, to use the testing attribute inherited that network service is tested.
In order to realize its desired function, system (100) includes various hardware component. In these hardware componenies, it is possible to have multiple processor (101), multiple data storage device (104), multiple peripheral adapter (103) and multiple network adapter (102). These hardware componenies can by using multiple bus and/or network connection to interconnect. In one example, processor (101), data storage device (104), peripheral adapter (103) and network adapter (102) can couple communicatedly via bus (110).
Processor (101) can include hardware structure, for obtaining executable code from data storage device (104), and performs this executable code. Executable code, when being performed by processor (101), can make the processor (101) method according to this specification described herein, uses the testing attribute inherited to realize the function of at least network service test. In the process performing code, processor (101) can receive input from remaining hardware cell multiple, and provides output to remaining hardware cell multiple.
Data storage device (104) can store data, the executable program code that data such as processor (101) or other process equipment perform. As will be discussed, data storage device (104) can specifically store processor (110) and perform the multiple application programs to realize at least functions described herein.
Data storage device (104) can include various types of memory module, including volatibility and nonvolatile memory. Such as, the data storage device (104) of this example includes random access memory (RAM) (105), read only memory (ROM) (106) and hard disk drive (HDD) memorizer (107). It is also possible to use many other types of memorizer, and owing to being likely to be suited for the application-specific of principles described herein, this specification expects and uses many different types of memorizeies in data storage device (104). In some examples, the different types of memorizer in data storage device (104) can be used for different data storage needs. Such as, in some examples, processor (101) can start from read only memory (ROM) (106), maintain the non-volatile memories in hard disk drive (HDD) memorizer (107), and perform the program code being stored in random access memory (RAM) (105).
Generally, data storage device (104) can include computer-readable medium, computer-readable recording medium or non-transient computer-readable medium etc. Such as, data storage device (104) can be but not limited to: electricity, magnetic, light, electromagnetism, infrared or semiconductor system, device or equipment or aforesaid any suitable combination. The example more specifically of computer-readable recording medium can include below such as: has the electrical connection of multiple electric wire, portable computer disk, hard disk, random access memory (RAM), read only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), portable optic disk read only memory (CD-ROM), light storage device, magnetic storage apparatus or aforesaid any suitable combination. In the context of this document, computer-readable recording medium can be any tangible medium, and it can comprise or store by instruction execution system, device or equipment use or the program with instruction execution system, device or device-dependent. In another example, computer-readable recording medium can be any non-transitory media, and it can comprise or store and is used by instruction execution system, device or equipment, or with the program of instruction execution system, device or device-dependent.
Hardware adapter (103) in system (100) makes the processor (101) can be mutual with system (100) other hardware elements various outwardly and inwardly. Such as, peripheral adapter (103) can provide the interface of input-output apparatus, input-output apparatus such as display device (108). Display device (108) can be provided to allow user mutual with the function of system (100) and to realize the function of system (100). Such as, via display device (108), the report of the result of instruction test elements or test case can be generated. Peripheral adapter (103) also can create the interface between processor (101) and printer, display device (108) or other medium outut devices. Network adapter (102) can provide the interface of other computing equipments in such as network, thus, and the data transmission between enabled systems (100) and other equipment in network.
System (100) farther includes the multiple modules for network service is tested. Various modules in system (100) can individually perform. In this example, various modules can as computer program storage separately. In another example, the various modules in system (100) can be combined in multiple computer program; Each computer program includes multiple module.
System (100) can include test database (111), for storing multiple test templates of network service entrance. As it has been described above, network service can refer to the transfer mode of the data between the electronic equipment on network. The example of network service can be social networking service. Therefore, network service entrance can refer to access the mode of specific network service. Such as, social networks network service can allow user to release news to social networks. Releasing news to social networks network service can be an example of network service entrance. In some instances, network service can have multiple entrance. Such as, social networks network service can allow user for certain information search network service. The ability of search social networks network service can be another example of network service entrance. Therefore, social networks network service can have multiple entrance in issuing entrance and search entrance. Another example of network service and various entrance provides subsequently. Particular webpage can be network service entrance. Different labels on website can be the example of the various network service entrances of web service. Although for social networks network service and webpage make with specific reference to, but principles described herein can use together with any amount of network service, and any amount of network service includes the network service contributing to the affairs between different entities.
The test template being stored in test database (111) can describe the network service entrance to test. Owing to test template includes the information of description network service entrance, therefore test template can be used for generating the document describing network service entrance.
More specifically, test template can include multiple testing attribute. Testing attribute can describe network service entrance. One example of testing attribute is the path attribute of the unique positions in instruction network service, and entrance can be located at this unique positions. In other words, path attribute can be can obtain the position of particular data network service from it, or can submit the position of particular data in network service to it. May be included in another example of the testing attribute in test template is method attribute, for indicating the expectation action implemented at the entrance place identified. Such as, " GET " method attribute may indicate that and to obtain data from entrance. In another example, " POST " method attribute may indicate that and to submit at entrance place and to process data. The another example of attribute is to comprise the body attribute of the message to show. Although making reference for path attribute and method attribute, but attribute may be included in any element using to describe network service entrance in test module board.
Use the testing attribute from the test template being included in test database (111), perform module (112) and the test elements from test template Inherit Testing attribute can be generated. As described, test template is stored in test database (111) is probably useful because it represents the storable single position of information that can be used multiple times. Therefore, when using the deformation of test template, test template can be starting point, and can reduce any redundancy when creating the testing attribute created. Additionally, any renewal to test template can be inherited by performing the test elements that module (112) generates when the operation of test elements the term of execution. As will be described below, test database (111) may also include other information, such as configuration information and multiple protos test suite PROTOS.
Data storage device (104) may also include execution module (112), is used for performing test elements. More specifically, perform module (112) multiple test elements can be generated with test network service entrance point. Such as, test elements can test network service entrance point whether implement activate operation. In another example, whether test elements can obtain information from network service by test network service entrance point.
Perform module (112) and the test elements inheriting multiple testing attributes from multiple test templates can be generated. Such as, test elements can inherit path attribute and method attribute from test template. As will be described below, multiple testing attributes of module (112) also rewritable succession are performed. Perform module (112) and multiple test elements can be generated, and inherit multiple testing attribute during runtime. Such as, according to the instruction performing test, perform module (112) and test elements can be generated, and allow to be inherited multiple testing attributes by this test elements. Before test elements performs, the link (link) between the testing attribute in test template and the testing attribute in test elements is probably " soft (soft) ".
Perform module (112) and multiple test elements can be performed. Such as, performing module (112) can from network service request information. Therefore, perform module (112) response to request to be received and verify this response. The checking of response can include comparing this response and expected results. In some instances, it is contemplated that response can be described as statement (assertion).
Data storage device (104) can include the reporting modules (113) generating report based on the execution of test elements. More specifically, reporting modules (113) may indicate whether to have verified that the response to request. In other words, reporting modules (113) can generate report, and whether its instruction response is the intended response that network service entrance is properly functioning. The response of checking " can pass through " test, and not verified response is likely to test " failure ".
Fig. 2 is the flow chart of the method (200) for using the testing attribute of succession that network service is tested of an example according to principles described herein. Method (200) can be started by the test template of generation (frame 201) network service entrance. As it has been described above, test template can use testing attribute to describe network service entrance. This attribute can include path attribute, method attribute, body attribute and statement. Include testing attribute at test template and be probably useful, because testing attribute is storable in single position, rather than in each test elements realizing testing attribute.
May be included in the certain types of testing attribute in test template is statement. Statement can be the expected results of the response to request. The example of statement provides subsequently. Test elements can ask network service entrance to return certain types of information. As response, network service entrance can return to this information. Can the information of return or response being compared with statement, whether to indicate, to respond be desired by test elements. If response is desired, then test elements can be passed through to verify. By contrast, if response is not desired, then test elements may not be passed through to verify. Checking or return intended response may indicate that network service entrance normal operation.
(frame 202) multiple test elements can be generated based on test template. As it has been described above, test elements can the function of test network service entrance point. Test elements can perform functional test, regression test or its combination. Such as, whether test elements can perform specific operation by test network service entrance point. Among other functions, other example of test elements includes whether test network service entrance point receives input information, and whether network service entrance sends output information.
When generating (frame 202) multiple test elements, test elements can inherit multiple testing attribute from test template. Such as, when generating test elements, it can inherit path attribute, method attribute, body attribute, statement or its combination from test template. In some instances, test elements can when the operation of test elements the term of execution Inherit Testing attribute. Before execution, the link between test template and test elements can be " soft ". By contrast, upon execution, test elements can Inherit Testing attribute.
It is probably useful from test template Inherit Testing attribute, because it can pass through to reduce the needs to the testing attribute rewriteeing each test elements, improves the efficiency that test elements generates. As an alternative, only can write testing attribute once in test template, and be inherited by the test elements based on test template simply. As will be explained in the following, inherit be also likely to be useful because for test template, the renewal of testing attribute can be carried out once, and the testing attribute updated can by test elements when test elements is run the term of execution succession. More specifically, operationally the term of execution Inherit Testing attribute be probably useful because its allow during runtime, to realize in the test elements of Inherit Testing attribute, any renewal that test template is carried out. The term of execution of operationally, Inherit Testing attribute potentially contributes to the dynamic renewal of test elements.
Then, (frame 203) test elements can be performed. The execution (frame 203) of test elements comprises the steps that the request that sends to network service entrance. Such as, test elements can from network service entrance solicited message. Among other things, other examples of test elements request comprise the steps that the function of test network service entrance point, the status checkout implementing network service entrance, the information that obtains in information and search network service entrance point from the data base being attached to network service entrance.
Therefore, perform (frame 203) multiple test elements and may also include that the response received request. Such as, perform module (Fig. 1,112) and the information of request can be received. Perform module (Fig. 1,112) and also can receive the instruction performing operation. In another example, perform module (Fig. 1,112) and the status information from network service entrance can be received.
Perform (frame 203) test elements and comprise the steps that auth response. Checking comprises the steps that whether instruction network service runs as expected. Checking comprises the steps that and response and statement is compared, and this statement is the instruction of intended response. Therefore, the response of checking can be by the intended response of test elements, and may indicate that the correct operation of network service entrance. By contrast, not verified response may indicate that network service entrance is not properly functioning or does not run as expectation.
In some instances, multiple variablees that (frame 203) test elements comprises the steps that process includes in multiple test elements are performed. Variable can be from before the response of test elements. Provide example as follows. The variable filled the term of execution that test elements can including. The example of this variable can be the logging-in code obtained. During test elements subsequently, variable can be called, and insert response as variable. In other words, logging-in code can be reused for test elements subsequently.
In some instances, variable can be arranged test elements by variable and arrange, or can the statement of origin self-test element arrange, and this test elements could dictate that the result of statement can as variable storage. Such as, the state outcome of statement can be configured to variable, uses in test elements subsequently.
Fig. 3 is the schematic diagram of the level of the test system (300) of an example according to principles described herein. System (300) can include the test template (314) describing network service entrance. Such as, test template (314) could be for the test template (314) of the certification entrance of test network service. Test template (314) can include the multiple testing attributes describing network service entrance. In the example described in figure 3, indicate path attribute and the method attribute (315a) of test template (314). Such as, test template (314) can include the path attribute " P1 " in the path of instruction network service entrance. Similarly, test template (314) can include the method attribute " M1 " of the expectation action indicating the entrance place identified to implement. As it has been described above, the example of method attribute includes " GET " attribute and " POST " attribute. Although Fig. 3 indicates path attribute and method attribute (315a), but according to system and method described herein, it may be achieved any kind of testing attribute. In other words, except concrete example above-mentioned, test template (314) can include any kind of testing attribute, and this testing attribute can refer to any information describing in the test template (314) of network service entrance.
Test template (314) may also include multiple statement (316a), and multiple statements (316a) are the testing attributes indicating the intended response to the request that network service entrance is made. In the example described in figure 3, the first statement " A1 " and the second statement " A2 " are included in test template (314). Except expected results, the example of statement includes expecting state code and expection body message.
Except describing network service entrance, test template (314) also can generate the document of network service. Such as, owing to test template (314) can include the description of network service, therefore test template (314) can process and for generating the document describing network service. Similarly, use and include the information in test template (314), the succession of the deformation that use can be applied based on test template (314) can be passed through, generate test elements (319). Such as, as it has been described above, test elements (319) can be generated as described in conjunction with Fig. 2. But, the testing attribute that test elements (319) is also based on including in test template (314) automatically generates. The generation of the generation and test elements (319) that describe the document of network service can be performed with the module generating document and test elements (319) by processing template information. System (300) may also include multiple test elements (319). As it has been described above, test elements (319) can perform action and the checking response to action. Test elements (319) can perform functional test, i.e. test is to determine whether the operation enabled by test elements (319) runs as expected. Test elements (319) can also carry out regression test, i.e. test is to determine whether the change on network service affects the further feature of network service. As it has been described above, test elements (319) can as indicated by arrow (320), from test template (314) Inherit Testing attribute. Although from test template (314) Inherit Testing attribute (namely test elements (319) is depicted as by Fig. 3, path attribute and method attribute (315a) and statement (316a)), but test elements (319) also can from other test elements (319) Inherit Testing attribute, such as, the testing attribute (319) having been carried out. In system (300), test template (314) can have similar structure with test elements (319). But, while Inherit Testing template (314), test elements (319) can be performed.
Except inheriting multiple testing attribute, test elements (319) is rewritable multiple testing attribute also, to realize the deformation of test template (314). Provide example as follows. As it has been described above, test template (314) can be generated to test certification network service entrance point. Therefore, the multiple test elements (319) each side with the some certification of test network service entrance can be generated. Such as, the first test elements (319a) can test the certification of validated user. Second test elements (319b) can test the network service action relevant with unauthorized user. 3rd test elements (319c) can test the web services response to default user. In this example, each test elements in test elements (319) from test template (314) Inherit Testing attribute, and can rewrite the concrete function that other testing attributes to be tested by each test elements (319) with reflection. In one example, test elements (319) can inherit all testing attributes from test template (314). The concrete example providing Inherit Testing attribute is as follows. First test elements (319a) can include the path attribute (315b) " P2 " rewriteeing path attribute (315a) " P1 " from test template (314). Similarly, the second test elements (319b) can include from the path attribute (315c) " P3 " of test template (314) rewriting path attribute (315a) " P1 ". Second test elements (319b) can include the statement (316b) " A3 " and " A4 " that rewrite statement (316a) " A1 " and " A2 " from test template (314). In figure 3, it is not rewritten and heritable any testing attribute is invisible in test elements (319). Such as, owing to it is in test template (314), the 3rd test elements (319c) can inherit path attribute and method attribute (315a) and statement (316a), and avoids rewriteeing them.
In some instances, multiple test elements (319) can assemble multiple test case (318). Test case (318) can be the container of test elements (319) so that test case (318) can gather multiple test elements (319) that the similar functions to network service is tested. Such as, the first test case (318a) can comprise the first test elements (319a) and the second test elements (319b). Similarly, the second test case (318b) can comprise the 3rd test elements (319c). Similarly, multiple test cases (318) can assemble bigger unit, such as protos test suite PROTOS (317).
Have again, although Fig. 3 describes such as path attribute and method attribute (315a) and the certain types of attribute of statement (316a), test template (314) can include any kind of information describing network service entrance, and test elements (319) can inherit the information describing network service entrance.
Fig. 4 is the flow chart of the other method (400) for using the testing attribute of succession that network service is tested of another example according to principles described herein. Method (400) comprises the steps that the test template (Fig. 3,314) of generation (frame 401) network service entrance. This can implement as described in conjunction with Fig. 2.
(frame 402) multiple test elements (Fig. 3,319) can be generated based on test template (Fig. 3,314). This can implement as described in conjunction with Fig. 2.
Rewritable (frame 403) is positioned in test elements (Fig. 3,319), includes multiple testing attributes of statement (Fig. 3,316b). Such as, test elements (Fig. 3,319) can include a testing attribute, deformation that this testing attribute is the example instruction in Fig. 3, that include testing attribute in test template (Fig. 3,314). In concrete example, test elements (Fig. 3,319) can include the path attribute different with test template (Fig. 3,314). Although the testing attribute in rewritable test elements (Fig. 3,319), but can keep the testing attribute in test template (Fig. 3,314) as write. By allowing based on test template (Fig. 3,314) the basic test attribute in customizes test elements (Fig. 3,319), rewrite in (frame 403) test elements (Fig. 3,319), to include statement multiple testing attributes and be probably useful. This while allowing the special specific function to test network service entrance point to rewrite test elements (Fig. 3,319), can reduce the redundancy rewriteeing testing attribute.
Multiple test elements (Fig. 3,319) can be gathered (frame 404) and become test case (Fig. 3,318). Test case (Fig. 3,318) can be one group of test elements (Fig. 3,319) of the correlation function generating test network service entrance point. Such as, about in the test case (Fig. 3,318) of certification, the first test elements (Fig. 3,319a) can test the certification of validated user, and the second test elements (Fig. 3,319b) can test the management of unauthorized user.
As the part performing test elements (Fig. 3,319), perform module (Fig. 1,112) and (frame 405) request can be sent to network service entrance. This request can the function of test network service entrance point. As mentioned above, among other functions, the example that test elements (Fig. 3,319) is asked comprises the steps that the function of test network service entrance point, the status checkout implementing network service entrance, the information that obtains in information and search network service entrance point from the data base being attached to network service entrance. Therefore, perform module (Fig. 1,112) and (frame 405) request can be sent to network service entrance, with the function of test network service entrance point.
As response, perform module (Fig. 1,112) and (frame 406) response can be received from network service entrance. This response may indicate that the operation being implemented (or being not carried out) by network service entrance in response to this request. Such as, perform module (Fig. 1,112) and the information of request can be received. Perform module (Fig. 1,112) also to receive operation execution or operate unenforced instruction. In another example, perform module (Fig. 1,112) and state instruction can be received from network service entrance.
Performing module (Fig. 1,112) can according to statement (Fig. 3,316) checking (frame 407) response. As it has been described above, statement (Fig. 3,316) can be intended response or the response of instruction expection operating condition. Such as, statement (Fig. 3,316) can be the expecting state of specific network service entrance. Therefore, perform module (Fig. 1,112) and state can be received as response, and the state of reception and expecting state are compared. In this example, the response of coupling intended response can be passed through to verify, or " can pass through " test. By contrast, the response not mating intended response may not be passed through to verify, or is likely to test " failure ".
In some instances, based on response, (frame 408) action can be implemented. Such as, if test " failure ", then can alerts triggered or report, to notify individual. Similarly, if testing " failure ", it may be achieved repair procedure, to correct any defect.
In some instances, the testing attribute that (frame 409) is positioned in test template (Fig. 3,314) can be revised. Such as, path attribute can be revised, to reflect the change in the path that network service is conducted interviews. Therefore, the renewable path attribute being positioned in test template (Fig. 3,314) is to reflect this change. The testing attribute being positioned in test elements (Fig. 3,319) can be updated similarly. Such as, test elements (Fig. 3,319) based on the testing attribute of the renewal in test template (Fig. 3,314), can inherit the testing attribute updated. As mentioned above, can at test elements (Fig. 3,319) Inherit Testing attribute term of execution of during operation, and before operationally performing, test template (Fig. 3,314) any link between testing attribute and in test elements (Fig. 3,319) can be " soft ". Therefore, any change testing attribute in test template (Fig. 3,314) made can by test elements (Fig. 3,319) when the operation of test elements (Fig. 3,319) term of execution inherit.
Amendment test template (Fig. 3,314) testing attribute in and Inherit Testing element (Fig. 3,319) testing attribute of the amendment in is probably useful, because can at test template (Fig. 3 to any amendment of testing attribute, 314) carry out once in, and in test elements (Fig. 3,319), the example of testing attribute only inherits amendment, and do not rewrite each testing attribute being positioned in test elements (Fig. 3,319). .
Fig. 5 is the schematic diagram of the system (500) for using the testing attribute (Fig. 3,315) of succession that network service (532) is tested of an example according to principles described herein. This system can include test database (511). As it has been described above, test database (511) can include the test template (514) describing network service entrance. Test database (511) also can store configuration (521) information. Configuration (521) information may indicate that the basic path of network service. Such as, configuration (521) information may indicate that the basic URL (URL) of network service. The protos test suite PROTOS (517) that test database (511) also can run before storing.
In execution module, configuration-direct module (527) can store the information that test is relevant. According to configuration-direct module (527), can when the operation of test elements (Fig. 3,319) term of execution quote the information that test is relevant. More specifically, configuration-direct module (527) can store executed test elements (519) before. Such as, as it has been described above, the first test elements (519) can ask the variable to return. Therefore, configuration-direct module (527) can store this test elements (519) and the variable (528) returned or any other variable (528). Configuration-direct module (527) also can store any response (529) to the request that network service (529) carries out. Configuration-direct module (527) may also include the result (530) of the checking of response. Such as, configuration-direct module (527) may indicate that whether test elements (Fig. 3,319) " is passed through " or " failure ".
In some instances, test elements (Fig. 3,319) can include the concrete operations to perform. Such as, test elements (Fig. 3,319) can ask network service (532) with putting maintenance into practice task. In this example, operation is storable in use-case manipulator (531). The term of execution, keep with while protos test suite PROTOS (517) isolates, can by test elements (Fig. 3,319) call operation.
Resolver (522) can obtain information from test database (511), to generate test elements (Fig. 3,319). More specifically, as it has been described above, resolver (522) can allow test elements (Fig. 3,319) from test template (514) Inherit Testing attribute. Except inheriting multiple testing attribute, resolver (522) can perform other operations, can perform entity allowing test elements (Fig. 3,319) to become.
Performer (523) can perform multiple test elements (Fig. 3,319). More specifically, test processor (524) can process test elements (Fig. 3,319). Such as, if test elements (Fig. 3,319) any variable (528) is included, then test processor (524) can process these variablees, to current test elements (Fig. 3,319) provide information, and test executing device (525) can perform current test elements (Fig. 3,319). In some instances, perform test elements (Fig. 3,319) and can include sending to network service (532) entrance request. This can implement as described above. After reception of the response, declaration module (526) can verify that this response. In other words, this response and expected results can be compared by declaration module (526). Performer (523) can continue this process, until the test elements (Fig. 3,319) in executed test case (Fig. 3,318). If including test elements (Fig. 3,319) in all statements " pass through " (checking), then test case (Fig. 3,318) can " be passed through ".
Reporting modules (513) can generate report (533). Report (533) may indicate that whether test elements (Fig. 3,319) or test case (Fig. 3,318) are passed through. More specifically, which test elements (Fig. 3,319) that report (533) may indicate that in test case (Fig. 3,318) does not pass through, or not verified. Report (533) can be based on user's input. Such as, user may indicate that what information to include in report (533).
Fig. 6 is the test report (633) of an example according to principles described herein. Test report (633) can transmit the information relevant with the test elements (Fig. 3,319) performed or test case (Fig. 3,318). Test report (633) can include the summary field (634) summarizing the execution of test. Such as, summary field (634) may indicate that the quantity of the mistake of the percent of pass of test case (Fig. 3,318), the quantity of testing results, the quantity of failed test and reception.
Test report (633) may also include the labor field (635) performing relevant information more specifically of instruction and test case (Fig. 3,318). such as, labor field (635) may indicate that the title of test elements (Fig. 3,319). other information in labor field (635) that may be included in can include performing test elements (Fig. 3, 319) time, testing results element (Fig. 3, 319) number of times, test elements (Fig. 3, 319) number of times having passed through, test elements (Fig. 3, 319) failed number of times, test elements (Fig. 3, 319) the term of execution detection mistake quantity, test elements (Fig. 3, 319) number of times of period collapse, test elements (Fig. 3, 319) percent of pass and test elements (Fig. 3, 319) fault identified in. although having carried out specifically quoting to the information being included in test report (633), but test report (633) can be generated according to input. therefore, user may indicate that the information included in test report (633).
For using the method and system that network service is tested by the testing attribute of succession can have multiple advantage, including: (1) simplifies the long term maintenance of big protos test suite PROTOS; (2) cost that the protos test suite PROTOS big with write associates is reduced; (3) redundancy in test case is reduced; (4) response that network service is changed is increased; And (5) raising efficiency when keeping big protos test suite PROTOS to update.
Have been provided that the example for illustrating and describe described principle of the description above. This description is not intended to limit or these principles is limited to disclosed any accurate form. According to instruction above, many amendments and deformation are possible.

Claims (15)

1. the method for using the testing attribute of succession that network service is tested, including:
Generating the test template of network service entrance, wherein test template includes multiple testing attribute;
Generating multiple test elements based on described test template, wherein test elements inherits the plurality of testing attribute; And
Perform the plurality of test elements.
2. method according to claim 1, farther includes: rewrite the multiple testing attributes being arranged in described test elements in described test elements.
3. method according to claim 1, farther includes: based on described test template, generate the document that described network service entrance is described.
4. method according to claim 1, farther includes: multiple test elements are assembled test case, and wherein test case is the container of multiple test elements.
5. method according to claim 1, farther includes:
Amendment is arranged in the described testing attribute of described test template, to reflect the change of network service entrance; And
By inheriting the testing attribute revised being arranged in described test template, amendment is arranged in the described testing attribute of described test elements.
6. method according to claim 1, wherein performs the plurality of test elements and includes:
Request is sent to described network service entrance; And
Response is received from described network service entrance.
7. method according to claim 6, farther includes: verify described response according to statement.
8. method according to claim 7, farther includes: based on described response implementation action.
9. method according to claim 1, wherein said test elements inherits the plurality of testing attribute from test template, another test elements or its combination.
10. the system for using the testing attribute of succession that network service is tested, including:
Processor;
Memorizer, is communicatively coupled to described processor, and described memorizer includes:
Test database, described test database is for storing multiple test templates of multiple network service entrance, and wherein test template includes the multiple testing attributes for describing network service entrance;
Resolver, described resolver is used for generating multiple test elements so that described network service to be tested, and wherein said multiple test elements inherit the plurality of testing attribute from the plurality of test template; And
Performer, described performer is used for performing the plurality of test elements.
11. system according to claim 10, wherein perform the plurality of test elements and include: process the multiple variablees including in described test elements.
12. system according to claim 11, wherein said multiple variablees originate from before the response of test elements.
13. system according to claim 10, farther include: for generating the reporting modules of report.
14. system according to claim 10, farther include: for performing the use-case manipulator of fc-specific test FC operation.
15. for the computer program using the testing attribute of succession that network service is tested, described computer program includes:
Computer-readable recording medium, described computer-readable recording medium includes the computer usable program code being included in, and described computer usable program code includes the computer usable program code carrying out following operation by processor when being performed:
Generating the test template of network service entrance, wherein test template includes multiple testing attribute;
Generating multiple test elements based on described test template, wherein test elements inherits the plurality of testing attribute;
Multiple test elements are assembled multiple test case;
Perform the plurality of test case; And
Based on the described execution of described test case, generate test report.
CN201380080299.XA 2013-10-17 2013-10-17 Testing a web service using inherited test attributes Pending CN105637500A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/US2013/065494 WO2015057234A1 (en) 2013-10-17 2013-10-17 Testing a web service using inherited test attributes

Publications (1)

Publication Number Publication Date
CN105637500A true CN105637500A (en) 2016-06-01

Family

ID=52828517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380080299.XA Pending CN105637500A (en) 2013-10-17 2013-10-17 Testing a web service using inherited test attributes

Country Status (3)

Country Link
EP (1) EP3058474A4 (en)
CN (1) CN105637500A (en)
WO (1) WO2015057234A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427634A (en) * 2017-11-21 2018-08-21 平安科技(深圳)有限公司 Electronic device, the method for test and computer readable storage medium
CN112115062A (en) * 2020-09-28 2020-12-22 海尔优家智能科技(北京)有限公司 Method and device for detecting attribute information, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751941A (en) * 1996-04-04 1998-05-12 Hewlett-Packard Company Object oriented framework for testing software
CN1428700A (en) * 2001-12-27 2003-07-09 联想(北京)有限公司 Method for producing test scheme and its system
CN1677365A (en) * 2004-03-31 2005-10-05 微软公司 Test case inheritance controlled via attributes
CN101236522A (en) * 2008-01-25 2008-08-06 中兴通讯股份有限公司 Hardware module test method and apparatus
US8370814B2 (en) * 2007-04-05 2013-02-05 Accenture Global Services Limited Automatic test generation for reference testing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040199818A1 (en) * 2003-03-31 2004-10-07 Microsoft Corp. Automated testing of web services
US8549138B2 (en) * 2010-10-01 2013-10-01 Microsoft Corporation Web test generation
US8793660B2 (en) * 2011-12-30 2014-07-29 Cellco Partnership Automated testing of programming code for a web service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751941A (en) * 1996-04-04 1998-05-12 Hewlett-Packard Company Object oriented framework for testing software
CN1428700A (en) * 2001-12-27 2003-07-09 联想(北京)有限公司 Method for producing test scheme and its system
CN1677365A (en) * 2004-03-31 2005-10-05 微软公司 Test case inheritance controlled via attributes
US8370814B2 (en) * 2007-04-05 2013-02-05 Accenture Global Services Limited Automatic test generation for reference testing
CN101236522A (en) * 2008-01-25 2008-08-06 中兴通讯股份有限公司 Hardware module test method and apparatus

Also Published As

Publication number Publication date
WO2015057234A1 (en) 2015-04-23
EP3058474A4 (en) 2017-03-22
EP3058474A1 (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US10642725B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
US10936476B2 (en) Regression testing of new software version and deployment
US10761836B2 (en) Maintaining the integrity of process conventions within an ALM framework
US20160239409A1 (en) Testing a web service using inherited test attributes
US10572373B2 (en) Automated test generation for multi-interface and multi-platform enterprise virtualization management environment
US9582270B2 (en) Effective feature location in large legacy systems
US10216617B2 (en) Automatically complete a specific software task using hidden tags
US10423517B2 (en) Assertions in a business rule management system
CN110851471A (en) Distributed log data processing method, device and system
CN113014445B (en) Operation and maintenance method, device and platform for server and electronic equipment
US20170242781A1 (en) Efficient Software Testing
US9612944B2 (en) Method and system for verifying scenario based test selection, execution and reporting
US9298539B1 (en) Automated error recovery for workflows
US20200327006A1 (en) Selective service-specific controls in a virtualized container environment
US20160259706A1 (en) Targeted multi-tiered software stack serviceability
US11411811B2 (en) Fault localization for cloud-native applications
CN105637500A (en) Testing a web service using inherited test attributes
US20180365126A1 (en) Processing failed events on an application server
CN113360365A (en) Flow testing method and flow testing system
US11347623B1 (en) Automated defect type based logging integration within source code
US11487602B2 (en) Multi-tenant integration environment
US11474816B2 (en) Code review using quantitative linguistics
US12135967B2 (en) Software code refactoring prioritization using software code defect aggregation in graphical code representation
US9218161B2 (en) Embedding a software content space for run-time implementation
CN116975200A (en) Method, device, equipment and medium for controlling working state of server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160601