Method and system for multi-mode testing through operation interface and scenario abstraction in a multi-tenant database environment
First Claim
1. A method of testing an application in an on-demand database system, the method comprising:
- defining a test framework for the application, wherein the application is accessible through a plurality of interfaces, the test framework comprising;
a set of test operations, each test operation corresponding to at least one operational function of the application performed upon a database of the on-demand database system and each test operation corresponding to one of the plurality of interfaces, the plurality of interfaces including at least a local interface, a web-based user interface and an application programming interface, the set of test operations including a test operation to synchronize records within the on-demand database system;
a set of test scenarios including a test scenario to test record synchronization on at least two of the plurality of interfaces, the at least two of the plurality of interfaces including an application programming interface, the test scenarios being defined in a separate class from the test operations, the test scenario to test record synchronization including;
i) at least one generic test step corresponding to at least one standard action being performed independent of the interfaces to be tested; and
ii) at least one test command configured to invoke the test operations to synchronize records corresponding to the interfaces to be tested, the test operations being received by the test scenario as arguments, the test command causing the operational function of the application corresponding to the received test operation to be executed through the corresponding interface; and
executing one or more of the test scenarios to implement a test on the interfaces to be tested for the application, wherein the executing is performed based on the at least one generic test step and the received test operations.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments are described for a system and method for testing a hosted application through a test framework that uses the same operational test code for any one of a plurality of application interfaces. A method under embodiments defines a set of test operations comprising a test for the hosted application, each test operation interacting with the application through an interface of a plurality of interfaces; defines a set of test scenarios, with each test scenario including a number of generic test steps and test operations, and wherein each test scenario includes a function call to the test operation corresponding to the interface to be tested; and executes one or more of the test scenarios to implement a test on the interface to be tested for the hosted application.
123 Citations
18 Claims
-
1. A method of testing an application in an on-demand database system, the method comprising:
-
defining a test framework for the application, wherein the application is accessible through a plurality of interfaces, the test framework comprising; a set of test operations, each test operation corresponding to at least one operational function of the application performed upon a database of the on-demand database system and each test operation corresponding to one of the plurality of interfaces, the plurality of interfaces including at least a local interface, a web-based user interface and an application programming interface, the set of test operations including a test operation to synchronize records within the on-demand database system; a set of test scenarios including a test scenario to test record synchronization on at least two of the plurality of interfaces, the at least two of the plurality of interfaces including an application programming interface, the test scenarios being defined in a separate class from the test operations, the test scenario to test record synchronization including;
i) at least one generic test step corresponding to at least one standard action being performed independent of the interfaces to be tested; and
ii) at least one test command configured to invoke the test operations to synchronize records corresponding to the interfaces to be tested, the test operations being received by the test scenario as arguments, the test command causing the operational function of the application corresponding to the received test operation to be executed through the corresponding interface; andexecuting one or more of the test scenarios to implement a test on the interfaces to be tested for the application, wherein the executing is performed based on the at least one generic test step and the received test operations. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for testing an application in an on-demand database system, the system comprising:
-
one or more processors; and a non-transitory computer readable medium storing a plurality of instructions, which when executed, cause the one or more processors to; defining a test framework for the application, wherein the application is accessible through a plurality of interfaces, the test framework comprising; a set of test operations, each test operation corresponding to at least one operational function of the application performed upon a database of the on-demand database system and each test operation corresponding to one of the plurality of interfaces, the plurality of interfaces including at least a local interface, a web-based user interface and an application programming interface, the set of test operations including a test operation to synchronize records within the on-demand database system; a set of test scenarios including a test scenario to test record synchronization on at least two of the plurality of interfaces, the at least two of the plurality of interfaces including an application programming interface, the test scenarios being defined in a separate class from the test operations, the test scenario to test record synchronization including;
i) at least one generic test step corresponding to at least one standard action being performed independent of the interfaces to be tested; and
ii) at least one test command configured to invoke the test operations to synchronize records corresponding to the interfaces to be tested, the test operations being received by the test scenario as arguments, the test command causing the operational function of the application corresponding to the received test operation to be executed through the corresponding interface; andexecute one or more of the test scenarios to implement a test on the interfaces to be tested for the application, wherein the executing is performed based on the at least one generic test step and the received test operations. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer program product comprising computer readable program code for testing an application in an on-demand database system, the program code to be executed by one or more processors when retrieved from a non-transitory machine-readable medium, the program code including instructions to:
-
defining a test framework for the application, wherein the application is accessible through a plurality of interfaces, the test framework comprising; a set of test operations, each test operation corresponding to at least one operational function of the application performed upon a database of the on-demand database system and each test operation corresponding to one of the plurality of interfaces, the plurality of interfaces including at least a local interface, a web-based user interface and an application programming interface, the set of test operations including a test operation to synchronize records within the on-demand database system; a set of test scenarios, including a test scenario to test record synchronization on at least two of the plurality of interfaces, the at least two of the plurality of interfaces including an application programming interface, the test scenarios being defined in a separate class from the test operations, the test scenario to test record synchronization including;
i) at least one generic test step corresponding to at least one standard action being performed independent of the interface to be tested; and
ii) at least one test command configured to invoke the test operations to synchronize records corresponding to the interfaces to be tested, the test operations being received by the test scenario as arguments, the test command causing the operational function of the application corresponding to the received test operation to be executed through the corresponding interface; andexecute one or more of the test scenarios to implement a test on the interfaces to be tested for the application, wherein the executing is performed based on the at least one generic test step and the received test operations. - View Dependent Claims (16, 17, 18)
-
Specification