发明名称 Intelligent automated testing method for restful web services
摘要 A generalized testing framework for testing a RESTful web service defines test cases that described RESTful operations on resource object and associated data in configuration files generates HTTP requests to the web service based upon a test case and receives corresponding responses, creates expected responses, and filters fields of interest from the actual and expected responses, and compares the filtered responses to determine whether they match. Expected responses are automatically created during runtime by mapping input data and RESTful API operations to a resource object based upon the test case, avoiding the necessity of predicting responses in advance. Test cases may be readily changed or adapted to different Restful web services by changing configuration files.
申请公布号 US9419884(B1) 申请公布日期 2016.08.16
申请号 US201213730261 申请日期 2012.12.28
申请人 EMC Corporation 发明人 Li Ye;Fu Ning;Wang Bin;Gao Xiaoming
分类号 H04L12/26;H04L29/06 主分类号 H04L12/26
代理机构 代理人 Young Barry N.
主权项 1. A method of testing a RESTful web service using a testing framework that includes a client, comprising: defining a test case that describes a plurality of RESTful operations on a resource object and associated input data in a test case configuration file, the test case configuration file comprising application program interfaces (APIs) corresponding to one or more of said RESTful operations on the resource object, associated input data and mappings of API's to test parameters of said test case, the test case configuration file having an alias reference identification of said resource object in place of a real identification that is randomly assigned to the resource object during run time processing of said test case; providing the test case configuration file to a client and to an expected result generator comprising a resource object processor, the client automatically generating testing requests to said web service at run time while said test case is processing based upon said APIs, said associated input data of said test case configuration file and upon receiving in response to actual responses to said testing requests received from said web service during said run time processing, said automatically generating comprising dynamically updating during run time said alias reference identification in said test case configuration file with said assigned real identification in response to said actual responses; automatically creating by the resource object processor expected results generator, at run time while said test case is processing, expected responses to the testing requests based upon said APIs, said updated alias identification, and said associated input data and parameters of said test case configuration file; and comparing said actual received responses with said expected responses.
地址 Hopkinton MA US