Contributions
Print failed test step data
Hi, In readyapi, Im running data driven testing where it reads data from excel file and pass it to HTTP request as parameter, and it loops through around 10k lines of data. I want to print/log the data(comes from excel file) that is failing only, is it possible? How can I achieve that? Thanks in advance.521Views0likes2CommentsReadyAPI Property transfer - value from response, count of json object/array
Hi folks, I want to implement Property Transfer step in my readyapi project and trying to get value from GraphQL Request response and from the response I need to fetch count of particular json objects/arrays and save as property, for example: { "data" : { "Info" : { "edges" : [ { "node" : { "info" : [ { "nodeName" : "abc", "code" : "abc", "Devices" : [ { "Id" : "abc", "dev" : "123", "mod" : "abc" }, { "Id" : "abc", "dev" : "123", "mod" : "abc" }, { "Id" : "abc", "dev" : "123", "mod" : "abc" } ] } ] } } ] } } } From above response I need to save count of devices which is 3 here, however $['data']['Info']['edges'][0]['node']['info'][0]['Devices'].length -> This json path returns 3 when I run it injsonpath.com site, but it returns null when I use the same json path in readyApi Any advice?678Views0likes3Comments- 2 years agoPlace ReadyAPI QuestionsReadyAPI Questions762Views0likes0Comments
save value from response into external file
Hi, Using readyApi, implemented data driven testing with steps of Data source -> GraphQL Request -> Data source loop. GraphQL Request step returns json response and it contains number of json objects. for example: { "data" : { "info" : { "edges" : [ { "node" : { "info" : [ { "Name" : "AG", "Devices" : [ { "AccountId" : "123", "dev" : "123", "Model" : "123" }, { "AccountId" : "123", "dev" : "123", "Model" : "123" }, { "AccountId" : "123", "dev" : "123", "Model" : "123" }, ] } ] } I need to get number of devices (3 in this example) and store in external file or same file in Data Source step. Is it possible?418Views0likes1CommentReady API data driven testing
Hi folks, I'm new to ReadyAPI and trying to automate Data Driven API testing with it. What is the best way to iterate through large data from json file? Data source test didn't accept json file and tried to use the same file as txt file, now struggling to iterate json formatted data from txt file. thanks in advance!Solved881Views0likes3Comments