D
D
Dmitry Eremin2017-07-11 16:59:39
Android
Dmitry Eremin, 2017-07-11 16:59:39

Mobile application automation. How to mock a server?

Hello
This is the thing
There is a mobile application
There is an appium and knowledge of programming languages
​​I would like to find an option how I can run the application in the test, use it -> it will send HTTP requests (GET / POST), but not to the server, but to the stub
How is this organized?
As an option, I see proxying requests and passing them to something self-written on some NodeJS, for example.
Maybe there are good ready-made solutions or successful practices?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azShoo, 2017-07-11
@azShoo

You make an env file in the application, in the env file you specify the address of mock_api as a host, in mock_api you make stubs for the test data you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question