Today's whim, do not know how, think of grasping our company mobile phone app package look, research and research our company's interface, hey, our API documentation, I grabbed the bag to see it. The tool chooses fiddler, Reason is free, uses also comfortable, the handset device IPhone6, the app does not introduce here.
The first step, set up the agent,
Open fiddler, select Tool>options>connections, set the port number, tick allow_remote computers to connect. Then OK. This completes the proxy setup. Restart Fiddler
View computer IP
Step Two
Mobile link Proxy server.
And then under Operation
Phone, you can see the request came over.
Grab the know to try
, soon we caught the know, at present my Computer fiddler seems to be a bit of a problem.
Here's the point, grab an app from our company,
This is the data that I sent to our company app for the login interface POST request,
We can see that there are detailed data request information here, but also can see the interface information returned by the system, then we can use these interfaces to write test cases, we first to look at, analysis, try to see if our interface can be used in code to request it.
I chose Python, with the sublime text editor, first to copy the URL here, to see if we can get the data directly, the answer should not be we have a look.
We can see at this time that the interface directly gives us back the
The data is empty, the parameter is not correct, proves that our request is successful, the interface can be normal access, then is the next to analyze the required parameters, and here still need data, then we can try to analyze the data of this interface,
We add these request parameters, or the parameter is not correct, then I think is not my headers need to add, so, I simply add the request header, but still do not, so I went to see the fiddler Json,textview and other discoveries, this parameter is not I add the look, So began splicing, finally finished the interface jewelry analysis, carefully look at our interface, wiping a lot of loopholes, then I can start to test our company's interface.
Found that there is no standard interface test document to do interface testing or a lot of trouble, there is no time to go and leadership to discuss the next.
Fiddler Crawl mobile App request Package