The present invention relates to data processing, and more specifically, to a method, a system, a computer program product, and an apparatus for generating test cases for different test types with respect to an application to be tested.
With the development of computer technology, various kinds of applications based on hardware technology and software technology have provided convenient support for human work and life. Before these applications are put into normal usage, how to ensure that they will completely satisfy the standards as desired by designers and developers has become a special trend of research.
Nowadays it is generally recognized that a test is a procedure of using manual or automatic tools to run and test a certain system, for the purpose of verifying whether the system satisfies specified requirements or checking the difference between a desired result and an actual result. Hence, it can be seen that tests are intended to determine whether requirements are satisfied.
Unfortunately, solutions in the prior art for test cases with respect to different test types are likely to cause waste of manpower, material resources, and time.
The present invention provides a method for generating test cases of different types for testing an application, comprising:
creating, by a processor of a data processing system, a functional flow of the application based on a system design of the application;
said processor generating additional test information corresponding to different stages of the functional flow with respect to a plurality of test types, said generating additional test information comprising utilizing templates associated with the test types of the plurality of test types; and
said processor generating the test cases based on the additional test information and at least one test case generation rule, said test cases of different types being associated with one another.
The present invention provides a data processing system comprising a processor, a memory coupled to the processor, and a computer readable storage device containing program code configured to be executed by the processor via the memory to implement a method for generating test cases of different types for testing an application, said method comprising:
said processor creating a functional flow of the application based on a system design of the application;
said processor generating additional test information corresponding to different stages of the functional flow with respect to a plurality of test types, said generating additional test information comprising utilizing templates associated with the test types of the plurality of test types; and
said processor generating the test cases based on the additional test information and at least one test case generation rule, said test cases of different types being associated with one another.
The present invention provides a computer program product, comprising a computer readable storage device having computer readable program code stored therein, said program code configured to be executed by a processor of a data processing system to implement a method for generating test cases of different types for testing an application, said method comprising:
said processor creating a functional flow of the application based on a system design of the application;
said processor generating additional test information corresponding to different stages of the functional flow with respect to a plurality of test types, said generating additional test information comprising utilizing templates associated with the test types of the plurality of test types; and
said processor generating the test cases based on the additional test information and at least one test case generation rule, said test cases of different types being associated with one another.
Features, advantages, and other aspects of embodiments of the present invention will become more apparent from the following detailed description, when taken in conjunction with the figures.
More detailed description will be presented below of embodiments of the present invention by referring to the figures.
The flowcharts and block diagrams in the figures illustrate the system, methods, as well as architecture, functions and operations executable by a computer program product according to various embodiments of the present invention. In this regard, each step in the flowcharts or block diagrams may represent a module, a program segment, or a part of code, which contains one or more executable instructions for performing specified logic functions. It should be noted that in some alternative implementations, functions indicated in steps may occur in an order differing from the order as shown in the figures. For example, two steps shown consecutively may be performed in parallel substantially or in an inverse order sometimes, which depends on the functions involved. It should be further noted that each block and a combination of blocks in the block diagrams or flowchart may be implemented by a dedicated, hardware-based system for performing specified functions or operations or by a combination of dedicated hardware and computer instructions.
Referring to
It should be understood that the method of generating test cases as illustrated in
Now by taking an Automatic Teller Machine (ATM) for example, illustration is presented of drawbacks in the prior solution illustrated in
In the above example, although the three test types share some test steps to a great extent, it is still necessary to repeatedly design test cases and corresponding checklists for different test types according to the method illustrated in
In addition, it is difficult for users to associate test cases for different test types. For example, the above performance test case, function test case, and accessibility test case have an association among them; i.e., they need to perform the same operations. However, in the existing method of designing test cases, test cases are independent of one another, and testers need to mentally understand the correlation among the test cases. Hence, it will also cause waste of manpower, material resources, and time during performing a specific test.
The inventors of the present invention realize that, although test cases for different test types are designed from different perspectives, the test cases are associated with one another because a desired objective of an application to be tested remains the same; these test cases verify, from different angles, whether the application to be tested satisfies a desired criterion. Hence, test cases for different test types might share some test steps; how to share these test steps and improve reusability of test cases in tests of different test types has become a tough issue during designing, storing, and executing these test cases. The present invention utilizes the idea of sharing experience and reusing resources to provide a method, a data processing system, a computer program product, and an apparatus for generating test cases for different test types with respect to an application to be tested. The test cases for different test types with respect to an application to be tested are generated on the premise of reusing existing configuration as much as possible. To this end, there is provided a method of and an apparatus for generating test cases that conform to a generation rule based on additional test information for different test types, as well as a related computer program product.
In one embodiment, there is provided a method of generating test cases for an application, the method comprising: creating a functional flow of the application based on a system design of the application; generating additional test information corresponding to stages of the functional flow with respect to at least one test type; and generating test cases based on the additional test information and a test case generation rule.
According to another embodiment of the present invention, the generating additional test information corresponding to stages of the functional flow comprises generating additional test information corresponding to stages of the functional flow based on a template associated with the at least one test type.
According to another embodiment of the present invention, the creating a functional flow of the application based on a system design of the application comprises abstracting the application as at least one data node, at least one activity node, and a relationship between the at least one data node and the at least one activity node.
According to another embodiment of the present invention, there is provided an apparatus for generating test cases for an application, the apparatus comprising: means for generating additional test information corresponding to stages of the functional flow with respect to at least one test type; and means for generating test cases based on the additional test information and a test case generation rule.
According to another embodiment of the present invention, the means for generating additional test information corresponding to stages of the functional flow comprises means for generating additional test information corresponding to stages of the functional flow based on a template associated with the at least one test type.
According to a further embodiment of the present invention, the means for creating a functional flow of the application based on a system design of the application comprises means for abstracting the application as at least one data node, at least one activity node, and a relationship between the at least one data node and the at least one activity node.
By using embodiments of the present invention, the problem of reusing test cases during a testing procedure is solved. It is possible to manage operations of designing test cases in a standardized flow based on the previous best practice and experience, and to continuously accumulate experience and perfect content of a knowledge base during testing different applications to be tested.
Hereinafter, the detailed description is further presented for embodiments of the present invention with reference to
As illustrated in
According to the method of one embodiment of the present invention, test cases of different types are generated based on a functional flow of an application to be tested. Hence, test cases of different types are associated with one another, rather than being isolated from one another in the prior art. In this way, during designing test cases, testers may focus their attention on the test itself, rather than on understanding the flow of the application to be tested.
Description will be presented below of a method and apparatus according to one embodiment of the present invention by taking an ATM as a concrete example of an application to be tested. It should be noted that according to embodiments of the present invention, an application to be tested may comprise any application that accomplishes particular desired functions based on software, hardware, and a combination thereof, and the purpose of using an ATM as an illustrative embodiment is to illustrate how to generate test cases for different test types in an operational flow of an Automatic Teller Machine, which is well known to people.
Now a brief introduction is made to an application scenario of an ATM. A certain amount of cash is deposited in the ATM, and a user may insert a bank card into the ATM and make a withdrawal or deposit after passing the password verification. When developing the ATM, developers have taken into consideration circumstances that may possibly occur in practical application. For example, a user keys in a correct or wrong password, a user chooses to withdraw different amounts of cash, the times for a user to make withdrawals/deposits, how many ATMs in one bank are operated simultaneously, etc.
In view of the above circumstances, various types of tests may exist when testing an ATM: an accessibility test with respect to each new user interface that appears during a user operation; a function test in case of data changes (for example, a user deposit or withdrawal causes a change in the current balance of the user and the cash balance of the ATM); a performance test for each operation, etc.
Detailed description is now presented of embodiments of the present invention with reference to
It should be understood that application program code and a standard design flow are documents that completely describe functions of an application to be tested. Hence, branches of the operational flow, which describes how the application to be tested operates in many cases (including normal cases and abnormal cases such as a normal branch and an abnormal branch from a decision step), may be obtained by importing the program code or the standard design flow (e.g., described in UML). The branches of the operational flow may serve as a basis for subsequently adding additional test data. According to one embodiment, this may be implemented by importing program code and/or a standard design flow, or may further comprise manual inputs, such as manually selecting program code in combination with standard design.
In step 304, additional test information corresponding to stages of the functional flow is generated for at least one test type (e.g., a plurality of test types). Additional test information, which may be set with respect to different test types, is introduced during adding additional test information. That is, complete additional test information may represent, from different perspectives, which criteria are to be satisfied by the application to be tested in various types of tests. In step 306, test cases are generated based on the additional test information and at least one test case generation rule. In one embodiment, it is possible to specify one or more generation rules or use a default generation rule.
In one embodiment, the generating additional test information corresponding to stages of the functional flow comprises generating additional test information corresponding to stages of the functional flow based on a template associated with at least one test type. Here, a template may be defined with respect to any additional test information that is added, and the template may be configured, and subsequently stored, with respect to different test types (a function test, a system test, a performance test, a security test, a globalization test, and an accessibility test, etc.) or according to different application types.
The preceding test types are defined as follows. A function test is a test to verify whether the application/system performs its design functionality. A system test is a test to verify whether the application/system is in compliance with its specified requirements. A performance test is a test to verify whether the application/system responds to queries and/or performs its functions within a specified amount of time. A security test is a test to verify whether compliance with security requirements is satisfied. A globalization test is a test to verify whether operation of the entire integrated application/system is acceptable. An accessibility test is a test to verify whether the interface design or voice prompt of the application/system is sufficiently user-friendly and convenient for the users to use.
It is noted that, for different applications to be tested, it is unnecessary to set a template for each test type, but it is possible to customize a template with respect to these aspects of the application that are to be tested. For example, a template associated with a function test and a system test may be set for application to be tested A, while a template associated with a performance test, a security test, and a globalization test may be set for application to be tested B.
The purpose of setting a template is to unify thinking of developers while designing test cases. Further, the template may record the best practice as summarized by the test team, as a knowledge management tool for the test team to apply previously summarized test experience to new applications to be tested. In addition, the template may automatically integrate algorithms for generating test data. Further, various templates may be accumulated and enriched continuously with operations on new applications to be tested.
In one embodiment, the creating a functional flow of the application based on a system design of the application comprises abstracting the application as at least one data node, at least one activity node, and a relationship between the at least one data node and the at least one activity node.
For different test types, verification is implemented based on data or activities of the application to be tested in different cases during its running procedure. Hence, the method according to one embodiment of the present invention uses data nodes and activity nodes to describe the functional flow of an application to be tested. Please note that, when using data nodes and activity nodes to describe the functional flow of the application to be tested, a data node represents a set of data that are involved during the operational procedure of the application, and an activity node represents (i.e., denotes) an activity that advances the functional flow forward. In one embodiment, a data node further comprises a set of input data corresponding to a set of input variables. An input variable means a set of variables that are involved when the application to be tested proceeds to a certain stage. For example, when a user inserts a bank card into an ATM and keys in a password, a set of input variables may comprise {cash balance in the ATM, user's account number, password keyed in by the user}. The procedure in the above ATM example where the user inserts the card, keys in the password and makes a withdrawal may be abstracted as data nodes shown in Table 1 and activity nodes shown in Table 2. Please note that, in Table 1, the third column “Set of Input Variables” indicates input variables comprised in a data node; and in Table 2, the third column “Description” indicates an overview of an activity represented by an activity node.
In one embodiment, the additional test information comprises at least one of: a set of input data corresponding to the set of input variables for at least one data node; a set of verification points for at least one data node; a set of verification points for at least activity node; an association between data nodes (if the at least one data node comprises at least two data nodes); an association between activity nodes (if the at least one data node comprises at least two data nodes); and a correlation between the set of input data and both the set of verification points for the at least one data node and the set of verification points for the at least one activity node.
In one embodiment, the at least one data node is a plurality of data nodes. In one embodiment, the at least one activity node is a plurality of activity nodes.
Detailed description is now presented of the meaning of a template and its concrete generation procedure with respect to the above types of additional test information. Since additional test information may comprise many items of content, a common template may be set for certain content, while a template associated with a test type is set for content related to this test type (e.g., a test point). An input data template for a set of input data may describe a source related to this set of input data. For example, data in the input data template for the set of input data may be obtained by: (1) ordinary data inputs (which may be divided into text, digit, etc. according to different types of input data); (2) an interface to a concrete data content file storing a subset of the set of input data (for example, while verifying whether an application to be tested satisfies multi-language support, files such as an excel document may be used to store test data that comprise different languages, as an input); (3) an interface to a data generator (for example, generating a random character string, a random number, both the random character string and the random number, etc.).
In addition, a relationship template may be defined with respect to a relationship between input data within the set of input data. For example, the relationship template includes: (1) a specified relationship between universal data variables (defining a mathematical relationship between variables, or a location relationship from a file); (2) an interface to an algorithm tool (such as an orthogonal test data preparation algorithm tool, an equivalence class test data preparation algorithm etc.). A user may select variables at different data nodes, and then a set of corresponding values for each selected variable is generated by the algorithm tool after the interface to the algorithm tool is called, wherein the set of corresponding values generated for each variable by the algorithm tool satisfies the specified relationship. Thus, the relationship template comprises (i) a specified relationship between input variables associated with the input data and (ii) an interface to an algorithm tool that generates a subset of the set of input data, said subset satisfying the specified relationship.
For example, the user selects input variables as represented in Table 3:
When it is necessary to define orthogonal data of (VAR1, VAR2, VAR6), an orthogonal test data preparation interface may be called to generate appropriate sets of input data {1, 5, 7}, {1, 6, 8}, and {2, 6, 7}.
In addition, a verification point template may be set with respect to a verification point for each test type. For example, the verification point template may comprise (1) an identification of a verification point pool for each test type (i.e., verification pools for the different test types, such as a verification point pool for a performance test, verification point pool for a security test, a verification point pool for a function test, verification point pool for other test types, etc.), wherein a verification point in each verification point pool may be customized in advance and also may be shared by different methods for generating test cases; (2) variables related to the verification point for each test type (e.g., data node-variable name); (3) and verification relationships pertaining to the verification point for each test type.
It should be noted that it is possible to reuse experience of the test team accumulated during past tests to a great extent by setting a verification point pool, so that reference may be made when setting verification points in future. As for a verification point pool for security test, it is possible to add into the verification point pool verification points that were used in past user verification. For example, verification points may comprise: when a user inputs a password, the input password is displayed in “*”; in an interface where a user inputs a password, voice prompt is played to remind the user whether there is a stranger nearby, etc. Due to the existence of a verification point pool, during testing an ATM, it is possible to select a proper verification point template from the verification point pool without a need to repeatedly design verification points by a user. Please note that setting corresponding verification point pools for different test types helps to generate corresponding verification points for different test types in a subsequent generation step.
By referring to concrete examples of an ATM, description will be presented below on how to add additional test information into a data node as shown in Table 1 and into an activity node as shown in Table 2 by using templates associated with different test types.
1. Data Node Data 0
A set of input variables of the data node Data0 is {cash balance in the ATM VAR1, user's account number VAR2, password keyed in by the user VAR3}. When defining a set of input data, a contextual reference relationship is to establish a relationship between data and a branch, and at this point possible branches of data include: (1) the Automatic Teller Machine successfully verifies the account number/password; (2) the Automatic Teller Machine fails to verify the account number/password.
At this point, two groups of input data need to be generated: one of the groups is correct account numbers/passwords for advancing the operational flow to branch (1), and the other of the groups is wrong account numbers/passwords for advancing the operational flow to branch (2). Suppose a data file (e.g., an excel file) storing correct account numbers/passwords is pre-set, and account numbers and passwords are in two fields in the same line of this file. Branch (1) and branch (2) represent an abnormal branch and a normal branch, respectively, from a decision step of determining whether the account numbers/passwords are correct. Then, for branch (1), the above template comprises an identification of “an interface to a concrete data content file” which may be selected to obtain an account number/password, and at this point, a relationship between input variables is that the account number VAR2 and the password VAR3 come from the same line of a data file. For branch (2), the above template comprises an identification of “an interface to a data generator” which may be selected, and character strings and/or numbers generated at random are used as input data, i.e., the account number VAR2 and the password VAR3. Since two random character strings are used as respective input values for the account number and the password, it may be deemed that the account number and password generated as such might not be correct account number and password that match each other. At this point, it is possible to obtain sets of input data for account numbers/passwords in branch (1) that will pass verification and for account numbers/passwords in branch (2) that will not pass verification, respectively.
2. Activity Node Activity1-1
Description is now given to details of adding additional test information into node Activity1-1. Node Activity1-1 is an activity node; detailed description of this activity is that the ATM successfully verifies the account number/password and prompts allowed operations. At this point, verification points for a performance test and a security test may be added respectively. That is, the verification point pool for performance test is applied, from which a verification point template is selected: when there are N concurrent users, a verification response time is no longer than M seconds. At this point, it is merely necessary to fill values of M and N in the template. Meanwhile, the verification point pool for security test is applied, from which a verification point template is selected: a password input by a verified user is an invisible character string (for example, being expressed in “*”).
3. Data Node Data1-2
Description is now presented of details of adding additional test information into node Data1-2. A set of input variables for data node Data1-2 is {current balance VAR4, withdrawn amount which the user is allowed to key in VAR5}. When defining a set of input data, a contextual reference relationship is to establish between currently input data and other data a relationship that meets the following criteria: in a current logical branch, current balance VAR4—withdrawn amount which the user is allowed to key in VAR5>=0, and in the current logical branch, cash balance in the ATM—withdrawn amount which the user is allowed to key in VAR5>=0. In this way, the template “an interface to a data generator” (for example, generating a random number) may be selected. Further, an additional data relationship template is “a relationship between universal data variables,” such as case 1 where VAR4−VAR5>=0, and case 2 where VAR4−VAR5<0.
Since input variables on this data node comprise withdrawn amount which the user is allowed to key in VAR5, a user input is involved. Hence, when defining verification points, the verification point pool for accessibility test may further be applied, from which the following verification point template is selected: there is voice prompt during a verification operation so as to facilitate operations for the blind.
On this data node, it is further necessary to verify whether a balance before a withdrawal is equal to a current balance of an account. Hence, the template “verify related variables” may be applied to select the variable to be current balance VAR4 on data node Data1-2, and the verification value to be the current balance of a user account number of VAR2 on data node Data0.
4. Activity Node Activity1-3
Description is now presented of details of adding additional test information to node Activity1-3. Node Activity1-3 is an activity node; description of this activity is that the user makes a withdrawal from the ATM and the current balance and the cash balance in the ATM decrease. At this point, only the verification point pool for performance test is applied, from which a verification point template is selected: when there are N concurrent users, a verification response time is no longer than M seconds, and at this point it is merely necessary to fill values of M and N in the template.
5. Data Node Data1-4
This data node corresponds to a set of input data {current balance VAR6, cash balance in the ATM VAR7}. Since there is no contextual reference at this point, it is unnecessary to define a set of input data. When defining verification points, the template “verify related variables” is selected, with the variable selected to be current balance VAR6 on data node Data1-4, and the verification value selected to be current balance on data node Data1-2 VAR4 minus withdrawn amount which the user is allowed to key in VAR5.
6. Activity Node Activity2-1
This node corresponds to an activity that the ATM fails to verify the account number/password and prompts a re-operation. Like the operation for activity node Activity1-1, verification points for a performance test and a security test may be added respectively at this point. That is, the verification point pool for performance test is applied, from which a verification point template is selected: when there are N concurrent users, a verification response time is no longer than M seconds. At this point, it is merely necessary to fill values of M and N in the template. Meanwhile, the verification point pool for security test is applied, from which a verification point template is selected: a password input by a verified user is an invisible character string (for example, being expressed in “*”).
7. Data Node Data2-2
This data node corresponds to a set of input variables {account number which the user is allowed to key in VAR2, password VAR3}. When defining the set of input variables, the context is that the Automatic Teller Machine fails to verify the account number/password. Hence, it is possible to select and use the template “the same variable name data” that is generated before, i.e., using variable VAR2 and variable VAR3 generated on data node Data0. Further, it is possible to select the above template “an interface to a data generator” and use randomly generated character strings as input data of account number VAR2 and password VAR3, so long as data in the set of input data are account numbers/passwords that would not pass verification. Meanwhile, the verification point pool for function test is applied, from which a verification point template is selected: verification fails.
8. Activity Node Activity2-3
This activity node corresponds to an activity that the user fails to key in a correct password for three times and the card is locked. Like the operation for activity node Activity1-1, verification points for a performance test and a security test may be added respectively at this point. That is, the verification point pool for performance test is applied, from which a verification point template is selected: when there are N concurrent users, a verification response time is no longer than M seconds. At this point, it is merely necessary to fill values of M and N in the template. Meanwhile, the verification point pool for security test is applied, from which a verification point template is selected: a password input by a verified user is an invisible character string (for example, being expressed in “*”).
Description has been presented above to concrete examples of how to use templates to add additional test data for respective data nodes and activity nodes into the functional flow. Now description is presented of a relationship between a set of input data and a set of verification points.
In one embodiment, an association relationship is specified as one of: an antecedent relationship, a descendant relationship, and a concurrent relationship. Since the association relationship comprises an association between data nodes and an association between activity nodes, it is possible to specify the relationship between data nodes and further specify the relationship between sets of input data corresponding to the data nodes as an antecedent relationship, a descendant relationship, or a concurrent relationship. It may be deemed that the association relationship describes a temporal sequence relationship between data nodes and between activity nodes in concrete test cases. Such a temporal sequence may be a sequential relationship (including the antecedent relationship and the descendant relationship) or a concurrent relationship. For example, if the antecedent-descendant relationship of Data0→Data2-2→Data1-2→Data1-4 is specified, a test case is then generated as follows: a user first keys in a wrong password, subsequently keys in a correct password and finally successfully makes a withdrawal. For another example, it is possible to specify the relationship between activity nodes as one of: an antecedent relationship, a descendant relationship, and a concurrent relationship. For example, if it is specified that Activity2-1 and Activity1-1 are concurrent, then a test case is generated indicating the same user modifies the password while making a withdrawal.
In one embodiment, further comprised is specifying a correlation as one of: a verification relationship and a concurrent relationship. The verification relationship is automatically generated based on adding a verification point. For example, in order to verify current balance VAR6 on data node Data1-4, a corresponding verification value is current balance VAR4 on data node Data1-2 minus withdrawn amount VAR5 which the user is allowed to key in. In one embodiment, the system design comprises at least one of: application program code, a standard design flow, and manual inputs.
In one embodiment, the at least one test type comprises at least one of: a function test, a system test, a performance test, a security test, a globalization test, and an accessibility test. In one embodiment, the generation rule comprises at least one of: a test case type and a user-specified rule. According to another embodiment of the present invention, the test case belongs to one of: a manual test case, a static test case, and an automatic script test case. It should be noted that the user-specified rule means that the user specifies parameters for generating a test case. For example, the user may specify that each test case should contain no more than five verification points and different test cases should share no more than five steps.
It should be noted that a test case type differs from a test type. The test type refers to the above function test, system test, performance test, security test, globalization test, and accessibility test, etc., and the verification point pool may be set with respect to a different test type. However, the test case type means in which conditions a test case is used, for example, being used in a manual test of testers, in a static test, or in an automatic script test.
Now referring to
Additional test information in the additional test information layer 430 is refinement of the relationships that should be satisfied by respective steps in the functional flow generated in the functional flow layer 420. For example, related data may be selected from a template gallery 432. Finally, a test case 450 is generated based on the additional test information layer 430 and the test rule layer 440.
Referring to
As illustrated in a block diagram 510 in
Still referring to the above example of an ATM, detailed description is now presented of a concrete example of generating test cases that conforms to the generation rules based on additional test information and a generation rule. Meanwhile, advantages of one embodiment of the present invention as illustrated in
It should be noted that the generated test cases may be decomposed and/or combined. According to one embodiment, one test case comprising more steps may be decomposed into a plurality of test cases each comprising fewer steps. For example, regarding the following test case: a user first keys in a wrong password, then keys in a correct password and successfully makes a withdrawal, it may be decomposed into two test cases: (1) a user keys in a wrong password, and (2) a user keys in a correct password and successfully makes a withdrawal. According to another embodiment, these two separate test cases may be combined into one test case.
Referring to
In one embodiment, there is provided an apparatus 600 for generating test cases for an application. The apparatus 600 comprises: creating means 610 configured to create a functional flow of the application based on a system design of the application; adding means 620 configured to generate additional test information corresponding to stages of the functional flow based on at least one test type (e.g., a plurality of test types); and generating means 630 configured to generate test cases based on the additional test information and a test case generation rule.
In another embodiment, the means for generating additional test information corresponding to stages of the functional flow comprises means for generating additional test information corresponding to stages of the functional flow based on a template associated with at least one test type.
In another embodiment, the means configured to create a functional flow of the application based on a system design of the application comprises means configured to abstract the application as at least one data node, at least one activity node, and a relationship between the at least data node and the at least one activity node.
In another embodiment, the additional test information comprises at least one of: a set of input data for the at least one data node; a set of verification points for the at least one data node; a set of verification points for the at least one activity node; an association relationship between the at least one data node; an association relationship between the at least one activity node; and a correlation between the set of input data and the set of verification points.
In another embodiment, further comprised is means configured to specify the association relationship as one of: an antecedent relationship, a descendant relationship, and a concurrent relationship.
In another embodiment, further comprised is means configured to specify the correlation as one of: a verification relationship and a concurrent relationship.
In another embodiment, the system design comprises at least one of: application program code, a standard design flow, and manual inputs.
In another embodiment, the at least one test type comprises one of: a function test, a system test, a performance test, a security test, a globalization test, and an accessibility test.
In another embodiment, the generation rule comprises at least one of: a test case type and a user-specified rule.
In another embodiment, the test case belongs to one of the following types: manual test cases, static test cases, and automatic script test cases.
Compared with the prior art, embodiments of the present invention have below advantages: standardizing the operational flow of the test team, reusing accumulated experience of the test team during past tests, and associating test cases for different test types.
The present invention can be embodied in full hardware, full software, or a form comprising both hardware components and software components. In a preferred embodiment, the present invention is implemented as software, including, without limitation to, firmware, resident software, micro-code, etc.
Moreover, the present invention may be implemented as a computer program product comprising computer-readable media or storage devices that store program code for use by or in connection with a computer or any instruction executing data processing system. For the purpose of description, a computer-usable or computer-readable medium or storage device may be any physically tangible medium or storage device that can store the program code for use by or in connection with an instruction execution data processing system, apparatus, or device.
The medium or storage device may be an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system (apparatus or device). Examples of the computer-readable medium or device may include the following: a semiconductor or solid storage device, a magnetic tape, a portable computer diskette, a random access memory (RAM), a read-only memory (ROM), a hard disk, and an optical disk. Examples of the current optical disk include a compact disk read-only memory (CD-ROM), compact disk-read/write (CR-ROM), and DVD.
A data processing system adapted for storing or executing program code would include at least one processor that is coupled to a memory element directly or via a system bus. The memory element may include a local memory usable during actually executing the program code, a mass memory, and a cache that provides temporary storage for at least one portion of program code so as to decrease the number of times for retrieving code from the mass memory during execution.
An Input/Output or I/O device (including, without limitation to, a keyboard, a display, a pointing device, etc.) may be coupled to the system directly or via an intermediate I/O controller.
A network adapter may also be coupled to the system such that the data processing system can be coupled to other data processing systems, remote printers or storage devices via an intermediate private or public network. A modem, a cable modem, and an Ethernet card are merely examples of a currently available network adapter.
It should be understood from the foregoing description that modifications and alterations may be made to respective embodiments of the present invention without departing from the true spirit of the present invention. The description in the present specification is intended to be illustrative and not limiting. The scope of the present invention is limited by the appended claims only.
Number | Date | Country | Kind |
---|---|---|---|
2011 1 0035143 | Jan 2011 | CN | national |
This application is a continuation application claiming priority to Ser. No. 13/342,280, filed Jan. 3, 2012, now U.S. Pat. No. 8,914,676, issued Dec. 16, 2014.
Number | Name | Date | Kind |
---|---|---|---|
5703885 | Sun et al. | Dec 1997 | A |
5892947 | DeLong et al. | Apr 1999 | A |
6002869 | Hinckley | Dec 1999 | A |
6038378 | Kita et al. | Mar 2000 | A |
7590973 | Barry et al. | Sep 2009 | B1 |
7895565 | Hudgons et al. | Feb 2011 | B1 |
8914676 | Cao et al. | Dec 2014 | B2 |
20050114838 | Stobie et al. | May 2005 | A1 |
20050177773 | Hadley et al. | Aug 2005 | A1 |
20070162894 | Noller et al. | Jul 2007 | A1 |
20080244321 | Kelso | Oct 2008 | A1 |
20090307763 | Rawlins et al. | Dec 2009 | A1 |
20100057693 | Himstedt et al. | Mar 2010 | A1 |
20100146514 | Alexander et al. | Jun 2010 | A1 |
20100180260 | Chikkadevaiah et al. | Jul 2010 | A1 |
20130145250 | Neumueller et al. | Jun 2013 | A1 |
Entry |
---|
Henderson, Paul; What's New in Wind River Test Management 3.3? http://blogs.windriver.com/henderson/2010/06 . . . ; Jun. 9, 2010; retrieved from the Internet Oct. 28, 2010; 4 pages. |
Prasanna, M., et al.; A Survey on Automatic Test Case Generation,Academic Open Internet Journal; www.acadjournal.com; vol. 15, 2005; 6 pages. |
Web Application Testing Tool Features; WebUI Test Studio Developer Edition; http://www.telerik.com/automated-testing-tools/products/webui-test-studi . . . ; retrieved from the Internet Oct. 28, 2010; 9 pages. |
VectorCAST/C++ integrated utilities: PhaedruS SystemS; 2009; 9 pages. |
Zhang Mei, et al., Automated Test Case Generation Based on UML Activity Diagram Model, Aug. 31, 2001, vol. 27, No. 4 (English Abstract), 7 pages. |
Examiner's Amendment (Sep. 24, 2014) for U.S. Appl. No. 13/342,280, filed Jan. 3, 2012. |
Notice of Allowance (Aug. 7, 2014) for U.S. Appl. No. 13/342,280, filed Jan. 3, 2012. |
Final Amendent (Aug. 1, 2014) for U.S. Appl. No. 13/342,280, filed Jan. 3, 2012. |
Final Office Action (May 2, 2014) for U.S. Appl. No. 13/342,280, filed Jan. 3, 2012. |
Amendment (Apr. 11, 2014) for U.S. Appl. No. 13/342,280, filed Jan. 3, 2012. |
Office Action (Jan. 15, 2014) for U.S. Appl. No. 13/342,280, filed Jan. 3, 2012. |
Number | Date | Country | |
---|---|---|---|
20150026524 A1 | Jan 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13342280 | Jan 2012 | US |
Child | 14509173 | US |