Skip to main content
9 events
when toggle format what by license comment
Apr 23, 2018 at 11:08 comment added Aalok I would suggest you to keep the payloads in JSON file only and then you can parse the JSONs. And I am sorry, I don’t have the code with me since we did that in one of the projects in my last company. I will try to get you some sample code to parse the JSONs.
Apr 23, 2018 at 9:57 comment added Rohan Kalia @Aalok Please suggest what's better keeping the payload in JSON file or an excel sheet. Also can you please send me a sample code how to read it from an excel sheet or even a file for that matter!
Apr 14, 2018 at 11:04 comment added Aalok See framework is more or less a skeleton or the way you organize your code. So, that it is easier to make changes, do updates and create scripts effectively ensuring the reusability of code. The question about framework seems like generic. Sorry, could not understand exactly what inputs do you need from the framework standpoint
Apr 14, 2018 at 10:33 comment added Aalok You can write a function in java to read from excel. This function can be a part of your framework.
Apr 14, 2018 at 10:31 comment added Aalok Hello Rohan, Here are the answers to your questions. So, framework depends on the nature of APIs. It entirely depends on you on how you want to organize your testware. It largely depends what makes things easier for you. For reporting, you can use TestNG reports or extent reports. I am more inclined towards extent reports because of better presentation. Writing payloads in the code is not a good practice. You should keep your payloads at some common location and have some common program to read the payload data from the file. Keep the payload in excel file and read the payloads
Apr 14, 2018 at 9:28 comment added Peter Thomas @RohanKalia here's a comparison between REST-assured and Karate: docs.google.com/document/d/… - this answers all these questions (disclaimer: am dev of Karate)
Apr 13, 2018 at 3:56 comment added Aalok Hello Rohan, sorry am not getting time to work on your questions. But will reply by end of the day tomorrow. I have seen your questions. Cheers!
Apr 12, 2018 at 6:08 comment added Rohan Kalia Many thanks for writing in! Yes, I also read about REST-Assured and I have got started with it and automated few APIs as well thus far. Just need a few suggestions: - How do I do things at a framework level? - How do I handle the reporting part? - I have written all the payload in the code itself. Is that a good practice? If not then how do I read payload from any other resource like sheet etc? - Any other practices for ensuing a good REST-Assured testing framework?
Apr 10, 2018 at 11:36 history answered Aalok CC BY-SA 3.0