发明名称 Method and system for multi-mode testing through operation interface and scenario abstraction in a multi-tenant database environment
摘要 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.
申请公布号 US9529698(B2) 申请公布日期 2016.12.27
申请号 US201113039944 申请日期 2011.03.03
申请人 salesforce.com, inc. 发明人 Tan Keng-Woei;Hang James;Ashok Divya;Tatlah Charandeep S.;Rivera Gene
分类号 G06F11/36 主分类号 G06F11/36
代理机构 Dergosits & Noah LLP 代理人 Dergosits & Noah LLP ;Noah Todd A.
主权项 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.
地址 San Francisco CA US