text
stringlengths
9
94.9k
The Self-Learning Module 106 also may associate a test case with data indicating that the test case is deemed to be exceptional. For example, if a code coverage metric associated with a first test case is less than or equal to a first value, the Self-Learning Module 106 may generate learning data in which the first tes...
The Optimal Control Module 108 uses the learning data to determine whether the most recently used set of test cases meet one or more acceptability criteria. If the Optimal Control Module 108 determines that the most recently used set of test cases does not meet the acceptability criteria, the Optimal Control Module 108...
If the Optimal Control Module 108 determines that the most recently used set of test cases meets the acceptability criteria, the Optimal Control Module 108 may cause the Test Runner Module 104 to perform testing of the Web Service Under Test 112 using that set of test cases on a regular basis (e.g., daily). The Optimal...
For example, if testing is performed on a daily basis for several weeks using a set of test cases and each time a code coverage metric of 96% is obtained and then testing is performed and a code coverage metric of 81% is obtained, the Optimal Control Module 108 may determine that the Web Service Under Test 112 has chan...
In one embodiment, the Web Services Integration Testing System 100 is designed in the Microsoft .NET Framework C# language by utilizing run time Microsoft T4 text templates (‘preprocessed’ templates) and an XML configuration file system. In Microsoft Visual Studio (VS), a T4 text template is a mixture of text blocks an...
FIGS. 2A-2D illustrate various portions of a class diagram 200 for the Web Services Integration Testing System 100, according to one embodiment. The class diagram 200 includes a CodeGenerate Class 202, an AuthenticationElement Class 204, an EntityCollection Class 206, a PropertyCollection Class 208, an EntryConfigEleme...
FIG. 3 shows an example computer system 300, according to one embodiment. The computer system 300 may be used to implement the Web Services Integration Testing System 100. The computer system 300 will at times be referred to in the singular herein, but this is not intended to limit the embodiments to a single device, s...
The computer system 300 may include one or more processing units 312 a, 312 b (collectively processing unit 312), a system memory 314 and a system bus 316 that couples various system components including the system memory 314 to the processing units 312. The processing units 312 may be any logic processing unit, such a...
The computer system 300 also may include a plurality of interfaces such as a network interface 360 and an interface 350 supporting a modem 362 or any other wireless/wired interfaces.
The computer system 300 may include a hard disk drive 324 for reading from and writing to a hard disk 326, an optical disk drive 328 for reading from and writing to removable optical disks 330, and/or a magnetic disk drive 332 for reading from and writing to magnetic disks 334. The optical disk 330 can be a CD-ROM, whi...
Although the depicted computer system 300 is illustrated employing the hard disk drive 324, optical disk drive 328, and magnetic disk drive 332, those skilled in the relevant art will appreciate that other types of computer-readable storage media that can store data accessible by a computer may be employed, such as mag...
Program modules can be stored in the system memory 314, such as an operating system 336, one or more application programs 338, other programs or modules 340, and program data 342. Application programs 338 may include instructions that cause the processor(s) 312 to generate random numbers, generate test parameters, gene...
While shown in FIG. 3 as being stored in the system memory 314, the operating system 336, application programs 338, other programs/modules 340, program data 342, and client 344 can be stored on the hard disk 326 of the hard disk drive 324, the optical disk 330 of the optical disk drive 328 and/or the magnetic disk 334 ...
An operator can enter commands and information into the computer system 300 through input devices such as a keyboard 346 and/or a pointing device such as a mouse 348, and/or via a graphical user interface. Other input devices can include a microphone, joystick, game pad, tablet, scanner, etc. These and other input devi...
The computer system 300 can operate in a networked environment using logical connections to one or more remote computers and/or devices described with reference to FIG. 1. For example, the computer system 300 can operate in a networked environment using logical connections to one or more mobile devices, landline teleph...
It should be understood that the various techniques described herein may be implemented in connection with hardware, software and/or firmware or, where appropriate, with a combination of such. Thus, the methods and apparatuses of the disclosure, or certain aspects or portions thereof, may take the form of program code ...
FIG. 4 is a flow chart of a method 400 of operating the Web Services Integration Testing System 100, according to one embodiment. At 402, the web services integration testing system configures an endpoint that is used to communicate with the Web Service Under Test 112.
In one embodiment, the Web Services Integration Testing System 100 configures the endpoint by processing a Windows Communication Foundation (WCF) client configuration file that includes address and binding information for the endpoint. The WCF client file may be created by specifying address information that uniquely i...
At 404, the Web Services Integration Testing System 100 obtains web service metadata via the endpoint configured at 402. In one embodiment, the Web Services Integration Testing System 100 obtains the web service metadata using the WS-MetadataExchange (MEX) protocol.
In one embodiment, the Web Services Integration Testing System 100 obtains a Service Metadata Document at 404. The Service Metadata Document describes the data (e.g., structure and organization of all the resources) exposed as HTTP endpoints by the web service. The Service Metadata Document describes data in Entity Dat...
At 406, the Web Services Integration Testing System 100 generates an initial set of test parameters for testing the Web Service Under Test 112. The Web Services Integration Testing System 100 may generate the initial set of test parameters by analyzing parameters, structures, and functions of the Web Service Under Test...
If the web service metadata is described in EDM terms, the web services integration testing system may parse the metadata and extract data relating to EDM data types. EDM data types may include: Null, Binary, Boolean, Byte, DateTime, Decimal, Double, Single, Guid, Intl 6, Int32, Int64, SByte, String, Time, and DateTime...
More particularly, if the name of a string variable includes “last” or “Iname”, the Web Services Integration Testing System 100 may select a heuristic algorithm module that generates test parameters for family names, which may include special characters such as apostrophes. If the name of a string variable includes “ad...
The Web Services Integration Testing System 100 then generates the initial set of test parameters using the selected heuristic algorithm module(s). For example, if the web service metadata obtained at 404 indicates that the Web Service Under Test 112 takes a variable “Name” as input that is of type “String” and that ca...
The Web Services Integration Testing System 100 then generates the initial set of test cases using the test parameters included in the initial set of test parameters. For example, each test case includes a string of text that can be processed by Test Runner Module 104 to invoke a function of the Web Service Under Test ...
At 408, the Web Services Integration Testing System 100 runs tests using the test cases generated at 406. For example, the Test Runner Module 104 runs the tests by sending a plurality of messages via the testing endpoint configured at 402, wherein each message includes one or more of the test parameters generated at 40...
At 410, the Web Services Integration Testing System 100 obtains feedback data. The feedback data may include, for each test case, test results metadata indicating an execution time metric and one or more code coverage metrics such as statement coverage data, decision coverage data, condition coverage data, path coverag...
The Web Services Integration Testing System 100 may obtain the feedback data (e.g. via network interface 360) from a computer system that hosts the Web Service Under Test 122. The Web Services Integration Testing System 100 also may obtain additional feedback data from a user (e.g. via keyboard 346).
At 412, the Web Services Integration Testing System 100 generates learning data based on the feedback data obtained at 410. For example, the Self-Learning Module 106 associates each test case used to run the tests at 408 with data indicating: whether the web service provided a response and, if so whether the response w...
At 414, the Optimal Control Module 108 determines whether the tests run at 408 are in an optimal state using the feedback data obtained at 410. The Optimal Control Module 108 may compare values included in the feedback data to predetermined or operator specified threshold values to determine whether the test is in an o...
If the Optimal Control Module 108 determines at 414 that the set of test cases run at 408 are in an optimal state, the Optimal Control Module 108 causes 408 to be repeated using the same set of test cases. For example, the Optimal Control Module 108 may cause the Test Runner Module 104 to run the same set of test cases...
At 416, the Optimal Control Module 108 determines whether current test results are better than previous test results, if any. If tests have been run only once at 408, the Optimal Control Module 108 determines that the current test results are better than previous test results. If tests have been run more than once at 4...
For example, the processing unit 312 may evaluate the energy selection logic shown in Equation 3 using a software module stored in the applications programs 338, and a value of the variable T and learning data stored in the program data 342. The learning data is used to calculate values for CodeCoverage(s′), ExecutionT...
If the calculated value of P(s,s′,T) is less than 1, the processing unit 312 determines that the test results for the current set of test cases are better than the test results for the previous set of test cases and confirms the current state. For example, the processing unit 312 causes the current set of test cases to...
At 418, the Web Services Integration Testing System 100 reverts to the previous state. For example, the processing unit 312 causes the previous set of test cases to be copied to an area of memory reserved for test cases that will be used to generate the next set of test cases, or otherwise causes the previous set of te...
At 420, the Web Services Integration Testing System 100 analyzes the learning data and determines which of the test cases associated with the current state are providing acceptable test results and which test parameters need to be altered. The Web Services Integration Testing System 100 may use the learning data associ...
Additionally or alternatively, the Web Services Integration Testing System 100 may use heuristic algorithm modules to evaluate test parameters included in the test cases associated with the current state. For example, if the test cases associated with the current state are not producing acceptable results and the test ...
At 422, the Web Services Integration Testing System 100 generates a new set of test parameters using the test parameters included in the set of test cases associated with the current state, the results of the analysis performed at 420, the web service metadata, and possibly other inputs (e.g., from an operator). The We...
At 424, the Web Services Integration Testing System 100 determines whether the testing is to be ended. The Web Services Integration Testing System 100 may determine whether the testing is to be ended by checking the value of one or more variables that define a software environment of Web Services Integration Testing Sy...
If the Web Services Integration Testing System 100 determines at 424 that testing is to be ended, the method ends. If Web Services Integration Testing System 100 determines at 424 that testing is not to be ended, the method returns to 408 and testing is performed using the new set of test cases generated at 422.
FIG. 5 is an example of a state diagram 500 of a test performed by the Web Services Integration Testing System 100, according to one embodiment. The state diagram 500 includes States A, B, C, and D, wherein State A is the initial state. For example, the processing unit 312 executes instructions that cause the Web Servi...
The Test Case Generator Module 102 provides the set of test cases corresponding to State A to the Test Runner Module 104, which performs testing of the function of the Web Service Under Test 112 using those test cases. That is, the Test Runner Module 104 invokes the function multiple times, each time providing one of t...
The Self-Learning Module 106 uses the test results data and other data (e.g., test results metadata) to generate learning data. The Web Service Under Test 112 (or software executing on a system hosting the Web Service Under Test 112) may provide the test results metadata to the Self-Learning Module 106. The test result...
For simplicity, only one type of metric is discussed in this example (i.e., a code coverage metric) and only four states are shown in FIG. 5. The learning data may associate each test case with more than one code coverage metric (e.g., a statement coverage metric, a decision coverage metric, a condition coverage metric...
The Optimal Control Module 108 determines whether the set of test cases corresponding to State A is in an optimal state. The Optimal Control Module 108 may use a predetermined acceptability criterion of at least 95% code coverage. The Optimal Control Module 108 determines that the test cases corresponding to State A ar...
The Test Case Generator Module 102 then generates a new set of test cases corresponding to State C using the new set of test parameters. The Test Case Generator Module 102 provides the new set of test cases to the Test Runner Module 104, which performs testing of the Web Service Under Test 112 using the test cases. The...
The Optimal Control Module 108 determines whether the set of test cases corresponding to State C is in an optimal state. The Optimal Control Module 108 determines that the test cases corresponding to State C are not in an optimal state because the code coverage metric corresponding to State C (i.e., 70%) is not at leas...
More particularly, the Optimal Control Module 108 first determines that (1−0.01)*(1/0.70)/(1/0.71)=1.004. Because 1.004 is not less than 1, the Optimal Control Module 108 determines that P(s,s′,T)=0. That is, the Optimal Control Module 108 determines that the test results for State C are not better than the results tes...
The Test Case Generator Module 102 then generates four test cases corresponding to State B. The Test Case Generator Module 102 provides the test cases to the Test Runner Module 104, which performs testing of the Web Service Under Test 112 using the test cases. The Test Runner Module 104 generates and provides correspon...
The Optimal Control Module 108 determines whether the set of test cases corresponding to State B is in an optimal state. The Optimal Control Module 108 determines that the test cases corresponding to State B are not in an optimal state because the code coverage metric corresponding to State B (i.e., 72%) is not at leas...
More particularly, the Optimal Control Module 108 determines that (1−0.01)*(1/0.72)/(1/0.71)=0.977. Because 0.977 is less than 1, the Optimal Control Module 108 determines that P(s,s′,T)=1. That is, the Optimal Control Module 108 determines that the test results for the current state (i.e., State B) are better than the...
The Stochastic Variation Module 110 then generates a new set of test parameters using the test parameters included in the set of test cases corresponding to State B. The Test Case Generator Module 102 generates a new set of test cases using the new set of test parameters. In this example, the new set of test cases corr...
The Stochastic Variation Module 110 then generates a new set of test parameters: null, “test”, “test^\0”, and “ ”. The Test Case Generator Module 102 uses the new set of test parameters to generate a new set of test cases corresponding to State D, which becomes the new current state. The Test Case Generator Module 102 ...
The Self-Learning Module 106 generates learning data by associating each of the test cases with a respective code coverage metric. The Self-Learning Module 106 also sums the code coverage metrics associated with each of the test cases corresponding to State D and determines that a code coverage metric for State D is 96...
The Optimal Control Module 108 instructs the Test Runner Module 104 to perform testing using the test cases corresponding to State Don a regular basis. For example, the Optimal Control Module 108 instructs the Test Runner Module 104 to perform testing using the set of test cases corresponding to State D every day at 3:...
responsive to determining that the second set of test cases performs worse relative to the first set of test cases, automatically generating the third set of test cases at least in part based on the second set of test cases, the third set of test cases different from the second set of test cases.
2. The method of claim 1 wherein the first set of test cases is automatically generated at least in part based on a name of a function included in the web service metadata obtained from the web service.
3. The method of claim 1 wherein the first set of test cases is automatically generated at least in part based on a name of a variable included in the web service metadata obtained from the web service.
4. The method of claim 1 wherein the first set of test cases is automatically generated at least in part based on a data type of a variable included in the web service metadata obtained from the web service.
5. The method of claim 1 wherein the first set of test cases is automatically generated at least in part based on at least one constraint on a variable included in the web service metadata obtained from the web service.
6. The method of claim 5 wherein the at least one constraint on the variable includes at least one of: a minimum value, a maximum value, and a string length.
wherein the first set of test cases is automatically generated using the selected plurality of test parameters.
wherein the plurality of test parameters are selected from the selected one of the plurality of predetermined sets of test parameters using the plurality of random numbers.
9. The method of claim 1 wherein the first learning data is generated by associating each test case of the first set of test cases with at least one respective test metric, and the second learning data is generated by associating each test case of the second set of test cases with at least one respective test metric, a...
10. The method of claim 1 wherein the first learning data is generated by associating each test case of the first set of test cases with at least one respective first code coverage metric and at least one respective first execution time metric, the second learning data is generated by associating each test case of the ...
wherein a result of the evaluating of the energy selection logic is used to determine whether the third set of test cases is to be generated using the first or the second set of test cases.
calculating a ratio that includes the sum of the plurality of test metrics associated with the first set of test cases and the sum of the plurality of test metrics associated with the second set of test cases.
wherein the ratio also includes the reciprocal of the sum of the plurality of test metrics associated with the first set of test cases and the reciprocal of the sum of the plurality of test metrics associated with the second set of test cases.
multiplying the ratio by a term that provides a bias for determining that the third set of test cases is to be generated based on one of the first set and the second set of test cases.
15. The method of claim 14 wherein the magnitude of the term that provides the bias for determining that the third set of test cases is to be generated based on one of the first set and the second set of test cases is less than one.
responsive to determining that the fourth set of test cases is to be generated, automatically generating the fourth set of test cases.
wherein a result of the comparing is used to determine whether the fourth set of test cases is to be generated.
wherein the variance is used to determine whether the fourth set of test cases is to be generated.
wherein the web service metadata is obtained from the web service via endpoint.
wherein the endpoint is configured using the URL.
wherein the endpoint is configured using the indication of the data communications protocol.
responsive to determining that the second set of test cases performs worse relative to the first set of test cases, automatically generate the third set of test cases at least in part based on the second set of test cases, the third set of test cases different from the second set of test cases.
23. The system of claim 22 wherein the first set of test cases is automatically generated at least in part based on a name of a function included in the web service metadata obtained from the web service.
24. The system of claim 22 wherein the first set of test cases is automatically generated at least in part based on a name of a variable included in the web service metadata obtained from the web service.
25. The system of claim 22 wherein the first set of test cases is automatically generated at least in part based on a data type of a variable included in the web service metadata obtained from the web service.
26. The system of claim 22 wherein the first set of test cases is automatically generated at least in part based on at least one constraint on a variable included in the web service metadata obtained from the web service.
27. The system of claim 26 wherein the at least one constraint on the variable includes at least one of: a minimum value, a maximum value, and a string length.
30. The system of claim 22 wherein the first learning data is generated by associating each test case of the first set of test cases with at least one respective test metric, and the second learning data is generated by associating each test case of the second set of test cases with at least one respective test metric,...
31. The system of claim 22 wherein the first learning data is generated by associating each test case of the first set of test cases with at least one respective first code coverage metric and at least one respective first execution time metric, the second learning data is generated by associating each test case of the...
wherein a result of evaluating the energy selection logic is used to the determine whether the third set of test cases is to be generated using the first or the second set of test cases.
wherein the energy selection logic is evaluated using the calculated ratio.
multiply the ratio by a term that provides a bias for determining that the third set of test cases is to be generated based on one of the first set and the second set of test cases.
36. The system of claim 35 wherein the magnitude of the term that provides the bias for determining that the third set of test cases is to be generated based on one of the first set and the second set of test cases is less than one.
responsive to determining that the fourth set of test cases is to be generated, automatically generate the fourth set of test cases.
wherein a result of comparing the sum of the plurality of test metrics included in the third learning data to the sum of the plurality of test metrics included in the fourth learning data is used to determine whether the fourth set of test cases is to be generated.
"Adobe Introduces Adobe Acrobat 3.0 Software," PR Newswire, Jun. 3, 1996, 3 pages.
"AMS Real-Time Getting Started Guide," AMS Services, Vertafore, Inc., 9 pages, 2008.
"CoreData Inc. Announces Technology and Marketing Agreement with MobileStar Network Corp.," Business Wire, Aug. 26, 1998, 2 pages.
"CoreData Offers E-mail Connectivity for RemoteWorx," Newsbytes News Network, Sep. 18, 1998, 1 page.
"Free Sticky Notes software-Sticky Notes program MoRUN.net Sticker Lite," Jan. 11, 2006, retrieved from http://web.archive.org/web/20060112031435/http://www.sticky-notes.net/free/stickynotes.html, on Oct. 10, 2013, 2 pages.
"Internet lifts servers to 64 bits," Electronic Engineering Times, Dec. 23, 1996, 3 pages.
"NotesPlusPlus," Feb. 25, 2006, retrieved from http://web.archive.org/web/20060225020405/http://www.sharewareconnection.com/notesplusplus.htm, on Oct. 10, 2013, 2 pages.
"SPSS Unveils Aggressive Development Plans: 1999 Product Releases Will Focus on Scalability and Deployment Solutions for the Enterprise," Business Wire, Feb. 18, 1999, 3 pages.
"Update insurance template according to changes in policy," retrieved from https://www.google.com/?tbm=pts, on Sep. 24, 2012, 2 pages.
"VERITAS Replication Exec version 3.1 for Windows," Administrator's Guide, pp. i-20, 49-68, and 119-160, Dec. 2004, 100 pages.