Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am using TestNG framework to automate mobile application. I want to capture endpoint url.
Using RestAssured this can be achieved.
You can create a method which should have you request body and required headers. Pass the data in required format (as RestAssured Expects)
The outcome of this can be put in Response class of RestAssured.
If you are running tests on simulator, you can use any sniffer like Fiddler, Charles or mitproxy (which is free) to see endpoints and requests-responses details
Required, but never shown