Contributions
Change API request link to test step -Groovy
Hi I am using ReadyAPI and already define Testsuite > TestCase > TestSteps in some cases , i need to change API Request link of some of test steps to another API , in this case I do it manually, by click on chain icon and open page "Link REST Request" in every test steps abd it is time consuming activity. Just wondering if there is any Groovy script to help to me to have bulk update of whole test steps in a test case to save time 🙂9 months agoPlace ReadyAPI QuestionsReadyAPI Questions276Views0likes0CommentsRe: convert Bigdecimal to date
U R wellcome Of course Refresh token is another endpoint of authentication package. But as QA test , we need to have test cases to control and double check all details. So in this case do you havre any suggestion to parse/convert timestamp values ?2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsRe: convert Bigdecimal to date
Hi Rao As part of JWT body It control validity time of Token Authentication. So i need to control validity time & expiration of different token types. In this case i need to parse token with such format i receive : 1669906025.870166 1670337568.956325 1670338168.956311 Regards Behdad2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsRe: convert Bigdecimal to date
Many Thanks Rich I am not expert in scripting , but i try to use your suggestions as Groovy script in ReadyAPI find two issue 1- Cant find your suggested methods injava.util.Calendar 2- When i try to convert big decimal value i receive form JWT token using formatter : any value i receive it always convert to 1970-01-20 with different times ?! BigDecimal BD1 = new BigDecimal("1669906025.870166"); BigDecimal BD2 = new BigDecimal("1670337568.956325"); BigDecimal BD3 = new BigDecimal("1670338168.956311"); double decimal_timestamp = BD1.doubleValue(); SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.SSS") formatter.setTimeZone(TimeZone.getTimeZone("UTC")); log.info 'formatter BD1 ' + formatter.format(BD1) log.info 'formatter BD2 ' + formatter.format(BD2) log.info 'formatter BD3 ' + formatter.format(BD3) ******* log formatter BD1 20/01/1970 07:51:46.025 formatter BD2 20/01/1970 07:58:57.568 formatter BD3 20/01/1970 07:58:58.168 So do you have any suggestion ?2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0Commentsconvert Bigdecimal to date
Hi I receive JWT (Java token) in my APIS and it contain Expiration date as big decimal format (such as: 1691675508.431418) I need to convent in to date & time format : yyyy mm dd HH MM SS Z and use it in test case assertion So I think i should use groovy script , but cant figure out how ? OR if i can use any tools in ready api that do this conversion for me ? I would be happy to share your experience on it with me2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes6CommentsReadyApi JSONPath match assertion with Wildcard
Hi I am using ReadyAPI 3.6.0 and a bit new on it 🙂 In some test steps, i like to use wild card in Jsonpath Match Assertion for content , but i don't know How to define wildcard ? Let me share a simple example: I have some REST endpoints with Json format to test, so in Teststep , I expect some response error messages start with "BAD_REQUEST::VALUE_FORMAT" followed by the name of the key in this case i think i have two option : 1- Use wild card like this "BAD_REQUEST::VALUE_FORMAT * " and it means that all similar messages end with * (key name) would be PASS/accepted 2- Define OR with various messages that i expect to see like BAD_REQUEST::VALUE_FORMAT-Key1 ORBAD_REQUEST::VALUE_FORMAT-Key2 ...... Actually i cant manage to define none of them ... in this case would you please help me on it ?Solved1.9KViews0likes3CommentsRe: ReadyAPI/functional test assertion don't works after awhile!
Hirichie Many thanks for your reply I have recently upgrade to 3.6.1 and as i have changes my test steps, i cant see the issue again , so i am not sure if its solved or not, but let's hope that it won't happen again 🙂4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews1like0CommentsRe: DataSource definition error "Cannot invoke "
Hi I have recently upgrade to 3.6.1 but problem still exist !? in first picture ,my already define3d data source works fine So i just add new property called *text UTF8* so i try to save and run whole data source again , and problem raise/shows again ! So do you have any idea ?4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes1CommentReadyAPI/functional test assertion don't works after awhile!
Hi I am using ReadyAPI 3.5.1 I have already defined some test suite and test cases to meet my requirements for test and controlling my API functionality , and it worked fine so i save it and in every new version of my production i try to use already save test cases. But funny thing happen! I have some simple Assertions in my test cases to control the error messages i expect. For example i am going to control error message "KEY_UNRECOGNIZED" , so i had defined an Assertion for response match content and it used to works! but when i try to run the test and control it again after a week , i see that these assertion do not correctly recognize the response error message ! (attached screen capture of it ) So as you can see i supposed to look for "KEY_UNRECOGNIZED" and in response it has "KEY_UNRECOGNIZED" and in my case it matched so it supposed to PASS , but i show FAIL ?! please note that this test step used to works fine while ago and i have done no change to it ...but it don't works correct now ?Solved1.6KViews0likes3Comments