API Masterminds - How to use dynamic properties to get today’s date?
Hello API Masterminds! I’m sure you are already familiar with the Property Expansion syntax in ReadyAPI and often use it to transfer data from one part of your test to another. But, did you know that with a similar syntax you can inject results of an arbitrary Groovy code execution to your tests and thus feed them with some dynamic data? This functionality is called Dynamic Properties. For example, you can insert a random numberto a request body the following dynamic property as shown in the below screenshot: ${=(int)(Math.random()*1000)} Each time you click the “Send“ button, the request body will contain a new random integer number. Questions: If you need today’s date in your test, what Groovyscript would you use in the dynamic property for this? If you already use dynamic properties in your tests, please share the use cases andprovidescript examples.3.1KViews0likes6CommentsAPI Masterminds - How do you reuse your ReadyAPI Groovy scripts?
How are you doing, API testers? If you do a lot of Groovy scripting in ReadyAPI, you might have already come to a need to use the same scripts in different tests and projects. Instead of copying over the same code snippets again and again, you, of course, thought about a way to have them all in one place from where you could easily access them from other scripts. The ways to achieve this are: Create custom Groovy classes, embed your reusable Groovy scripts into their methods, save them as separate files with the .groovy extension and voila - your Script Library is ready. You just need to point ReadyAPI where to find it (Preferences>ReadyAPI > Script library). If you change anything in those external classes, ReadyAPI will detect this and reload the classes automatically. Convert your Groovy code to Java code and embed it into methods of Java classes. Once the classes are compiled and packed into a .jar file, you can point to it from ReadyAPI (Preferences>ReadyAPI > Custom Java libraries) and start calling your Java methods right from your Groovy scripts. Making changes in Java classes is more time-consuming than in Groovy classes as you need to re-compile them, but you may find it more convenient to share them with your co-workers when it’s just a single .jar file. Questions: Do you use script libraries or custom Java libraries to reuse parts of your ReadyAPI scripts? And if so, what tasks are your reusable scripts for?2.9KViews2likes4CommentsAPI Masterminds Finale + Week 4 Winners
Hi dear API Testers! The API Masterminds event is officially over. It was a very exciting month for the wholeReadyAPICommunity for sure! Thanks to everyone who participated, we hope you found this as useful and interesting as we did :smileyhappy: Your participation was truly great and you all made this event really special! Before announcing the winners of Week 4, let us show you how fruitful this month was for theReadyAPICommunity innumbers: 56 new topics started 435(!)replies given 39 solutions marked 183 Kudos received 7 API Masterminds won special prizes fromSmartBear! Congrats! And, now, the moment we’ve been waiting for – the winners of Week 4of API Mastermindsbased on the number of posts and Kudos received: 1stplace -HimanshuTayal 2ndplace -nmrao 3rdplace -PratikshaMehete Congratulations, winners! You’dbrought a lot of knowledgeand expertiseto the Communityover the course of the week. We will be happy to send you prizes fromSmartBear - $50, $35, and $15 gift cards(according to the places). Thank you for making theReadyAPICommunity a better place. We hope everyone had a great and productive time! Now, theevent is over and thisevenfeels a little bit sad.The good news is we are planning on setting up more awesome online events in theReadyAPICommunity in the future!Stay tuned :smileyhappy: Take care and stay safe people. See you real soon on the pages of theSmartBear Community.2.9KViews3likes7CommentsAPI Masterminds Talks - What are the most important qualities of a good API tester?
Hi API Masterminds, We’ve prepared another interesting topic for discussion. Your valuable input here will be counted as part of the 2020 API Masterminds event and improve your chances of winning prizes from SmartBear this week! Here's the topic: Last week, we were discussing the ability to stay focused when testing - that is definitely one of the key qualities of a pro tester. What other qualities and skills are you working on improving? That would be a great piece of advice for novice testers who are just entering the field and looking for direction. Share your thoughts by replying to this topic:smileyhappy:2.7KViews2likes9CommentsAPI Masterminds Talks - Your favorite metrics to measure effectiveness of API automation efforts?
Hi API testers! There are many ways to measure APItesting efficiency. For instance, you can measure: The number of defects How much code is covered byautomation Test duration Etc. My question to you, API Masterminds - which metrics do you findthe mostuseful in your API testing process? Also, if you are working from home, has anything changed in terms of metrics? We are all spending so much time on the calls with our colleagues that this might interfere with the testing processes, so maybe we should start counting this too.1KViews0likes2Comments[Week 3] API Masterminds Winners
Hello API Community! It is time to announce the winners of week 3 of the API Masterminds event. Give a big round of applause to the Masterminds who posted a lot last week and received many Kudos: 1st place - nmrao. 32 posts and 12 Kudos received. 2nd place - HimanshuTayal. 25 posts and 13 Kudos received. 3rd place -apuand arunbharath. apu has 4 posts and 1 Kudos, arunbharath has 5 posts. Great results! Congratulations. Your contribution is highly appreciated, as always! We will send you prizes from SmartBear shortly:smileyhappy: The rules remain the same: next week we will be counting the topics you start, replies you post and Kudos you receive to decide the winners. Week 4 is going to be the last week of the event. The final results will be up next Monday (March 30). This is your last chance to shine and become a real API Mastermind! Good luck!11KViews1like1CommentAPI Masterminds Talks – What are the best practices of working remotely?
Hi everyone! Here’s a new topic for discussion for our API Masterminds event – working from home. This is a burning question for millions of people all over the globe. Share your thoughts and opinions on how to work from home successfully! I’ll start by sharing a bit of my own experience: What I’ve learned about working remotely is however tempting it may be to get out of bed and go straight to your PC, it is way better to actually carry on with your morning routine: wake up early, cook wholesome breakfast, workout. Otherwise you will feel lazy, sleepy and not productive for the rest of the day. What are your tips to make working remotely as efficient as possible?2.2KViews1like3Comments[Week 2] API Masterminds Winners
Howdy ReadyAPI Community, I hope you enjoy the API Masterminds so far.I likeseeing that you share your knowledge around ReadyAPI as well as yoursuggestions that may help everyone work pro-actively! As we promised, we decide weekly winners based on the numberof posts created in the ReadyAPI Community (including technical forums and the featurerequest forum). Right now, I'm happy to announce the Week 2 winners. Pleasejoin me in congratulating these guys: 1st place with 55 posts(!!!) created -nmrao. Rao, as usual, it's soawesome! 2nd place with 42 posts created (very close to the 1st place) -HimanshuTayal.Himanshu, how about competing with Rao during week 3? ;) 3rd place with 13 posts created -hazel_chua. Please meet the first-timewinner :) Welcome to the team of winners! From SmartBear, we will be happy to send each winner $50, $35, and $15 gift cards (according to the places). You rock! Week 3 Task: Give more valuable posts to the ReadyAPI Community - theposts for which you will get the biggest number of Kudos.We will countthe number of posts and received Kudos when deciding the winners next week.During the week, we will start several conversations whereyou can participate to get more points. Stay tuned! Let's rock, Masterminds1.1KViews1like2CommentsAPI Masterminds Talks – How to stay focused while testing?
The technical aspect of API testing is important.The vast majority ofquestions in thisCommunityarestrictlytechnical.At the same time, if you have good skills intime management, cross-team communication,task prioritization, etc., you can be more efficient in resolving your testing tasks! Today, let’s talk about the things that help you do yourwork better. API Masterminds, post your comments here to answer the question:What helps you to stay focused while testing? It is hard to stay focused for long periods of time when you are doing intensetesting.I heard that some testers are listening to music toblock out distractions. Specifically, something rhythmical and instrumental.Classical music works as well. In my opinion, noise-cancelling headphones are a must in an open space office! How do you maintain focus?2.1KViews0likes8CommentsAPI Masterminds – Week 2 is Almost Over!
The API Masterminds event is slowly approaching its middle - week 2 is almost over! A lot of value has been added to the ReadyAPI Community over the course of the event. Thank you everyone! Withnmraoleading the race with a pretty big advantage, we have 3 more people who are currently fighting for the pedestal: HimanshuTayal,hazel_chuaand anand1.Keep the activity up, Masterminds! arunbharath,PratikshaMehete,richie,@thePantz, @Vallalarasu_P,@ArthurM,@senthkumyour activity also gives you awesome chances to win this week! Contribute to any topics in the ReadyAPI Community. Especially to the following one where we are gathering suggestions on how to stay focused when testing: API Masterminds Talks – How to stay focused while testing? We are waiting for your advice! The week 2 final results will be up on Monday 16. Keep posting everyone! Let’s rock!1.5KViews0likes3Comments