Legal claims defining the scope of protection, as filed with the USPTO.
1. A method for testing operation of a client, comprising: transmitting, by a unit test that corresponds to a particular network-based service with which the client is expected to interact, an interface call, wherein the interface call is a simulated interface call, and wherein the unit test is configured to test client interaction with the network-based service; intercepting the interface call with a mock service wrapper that mimics actual client architecture code and simulates operation of a web server; determining a correct response to the interface call, wherein the correct response is a response that would ordinarily be transmitted by an actual service wrapper in response to the interface call; passing the interface call from the mock service wrapper to the actual service wrapper; intercepting a network request when the network request is sent by the actual service wrapper, wherein the intercepted network request corresponds to the interface call that was passed by the mock service wrapper to the actual service wrapper; injecting a previously prepared response that corresponds to the network request; extracting, from the previously prepared response, an answer to the interface call; comparing the answer to the correct response; and generating a unit test success indication when the answer matches the correct response, and generating a unit test failure indication when the answer does not match the correct response.
2. The method as recited in claim 1 , wherein the method is performed without any communication between the client and a network.
3. The method as recited in claim 1 , wherein the method is performed entirely within an architecture of the client.
4. The method as recited in claim 1 , wherein the simulated interface call simulates an actual interface call that is transmitted, during normal operations, by the client to the network-based service.
5. The method as recited in claim 1 , further comprising storing the correct response.
6. The method as recited in claim 1 , wherein determining the correct response is performed by the mock service wrapper.
7. The method as recited in claim 1 , wherein the network request is prepared by the actual service wrapper.
8. The method as recited in claim 1 , wherein the mock service wrapper resides at the client and does not communicate with a network.
9. The method as recited in claim 1 , wherein the actual service wrapper is configured for communication with a network.
10. The method as recited in claim 1 , wherein the network request is prepared by a REST invoker associated with the actual service wrapper.
11. The method as recited in claim 1 , wherein the answer is obtained by the actual service wrapper.
12. A non-transitory storage medium having stored therein computer-executable instructions which, when executed by one or more hardware processors: perform the following processes at a client: transmitting, by a unit test that corresponds to a particular network-based service with which the client is expected to interact, an interface call, wherein the interface call is a simulated interface call, and wherein the unit test is configured to test client interaction with the network-based service; intercepting the interface call with a mock service wrapper that mimics actual client architecture code and simulates operation of a web server; determining a correct response to the interface call, wherein the correct response is a response that would ordinarily be transmitted by an actual service wrapper in response to the interface call; passing the interface call from the mock service wrapper to the actual service wrapper; intercepting a network request when the network request is sent by the actual service wrapper, wherein the intercepted network request corresponds to the interface call that was passed by the mock service wrapper to the actual service wrapper; injecting a previously prepared response that corresponds to the network request; extracting, from the previously prepared response, an answer to the interface call; comparing the answer to the correct response; and generating a unit test success indication when the answer matches the correct response, and generating a unit test failure indication when the answer does not match the correct response.
13. The non-transitory storage medium of claim 12 , wherein the processes are performed without any communication between the client and a network.
14. The non-transitory storage medium of claim 12 , wherein the processes are performed entirely within an architecture of the client.
15. The non-transitory storage medium of claim 12 , wherein the simulated interface call simulates an actual interface call that is transmitted, during normal operations, by the client to the network-based service.
16. The non-transitory storage medium of claim 12 , wherein: wherein determining the correct response is performed by the mock service wrapper; and the network request is prepared by the actual service wrapper.
17. The non-transitory storage medium of claim 12 , wherein the answer is obtained by the actual service wrapper.
18. A computing device, comprising: one or more hardware processors; and the non-transitory storage medium as recited in claim 12 .
Unknown
May 28, 2019
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.