- May 20, 2018 at 9:42 pm #19549
How can I read the input data from any HTTP source (ex. RSS feeds) every x seconds in TestNG?May 21, 2018 at 5:33 pm #19563
Use thread.sleep in a for() loop. See example here: https://docs.oracle.com/javase/tutorial/essential/concurrency/sleep.html
P.S. I believe this question belongs to programming in Java. It is not about testing API exactly, and not even about TestNG, as only Java code and methods apply to this.May 22, 2018 at 10:59 pm #19580
Trust me, it was an interview question for QA Engineer to test the integration of different web servicesMay 26, 2018 at 4:12 pm #19610
I don’t have doubts that the question was asked — it just does not really belong to “API testing” topic. It’s common that some company want to test if the person they may hire is skilled with Java and Test NG, but that is not really about API testing.
You can run requests from Postman, SoapUI, Jmeter, many other tools in different languages. There is no any particular need to use TestNG for that.
I’d put the topic like you added it below the title: “How can I read the input data from HTTP source every x seconds in TestNG?”May 27, 2018 at 8:45 pm #19624
Sure, can do 🙂
You must be logged in to reply to this topic.