VeJaayOccasional ContributorJoined 7 years ago12 Posts5 LikesLikes received2 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: How to use extent-report in Ready API tool? For that you have to write logic to get the test steps and the assertions associated in them.. I dont have the code for that but its not that tough to find it online... I'll share if I have some working code Re: How to use extent-report in Ready API tool? Sadly no :( 678 wrote: VeJaay Any Update here ? Re: How to use extent-report in Ready API tool? Hey surendermcard and 678 I am trying the same. Will post if it turns out fine... Just on question though any specific reason to get the report at proejct level ? Coz I personally find it easy to maintin in the Suite level. I will get a working solution and update here. If possible please list down what steps does your project have ? Like Groovy SOAP /Rest , JDBC etc... Re: Need help in placing a script in tear down script. Thanks JoostDG for your help. But what I was looking is to place a report script in the teardown script using groovy code.I have found it and its working Here is the code : testRunner.testCase.testSuite.project.getTestSuiteByName('Library').getTestCaseByName('Test2').setSetupScript('log.info "34324234"') def script = context.expand( '${#[Library#Test1#te]#script}' ) log.info script testRunner.testCase.testSuite.project.getTestSuiteByName('Library').getTestCaseByName('Test2').setTearDownScript(script) Need help in placing a script in tear down script. I am generating report for each and every test case. The code for the report is placed in the tear down script. I make frequent changes to the report and its very difficult to change the code every time. So I thought of placing the code in the property and accesssing in the tear down scipt. I am able to get the value from the property but not sure how to run it. Sopa UI is considering it as plain text. Any help to fetch code from property in tear down script and make it run would solve my issue. SolvedRe: How to use extent-report in Ready API tool? To make it run at a project level , you must change the logic behind getting the report... My understanding is runner.results.each --- > This works only in suit level. So need to store the report params in a temp file and write them to the final report in the project level Re: How to use extent-report in Ready API tool? Place the code in the Tear Down suite of the Test Suite and you will not get this error. If you place in Project level Tear down you will face the error Re: How to use extent-report in Ready API tool? I am not sure this will work in project level... I have tried only in case level. Also how did it work ? Can you list the changes you made so that it woudl help others. Re: How to use extent-report in Ready API tool? Where did you place the script I posted ? it must be placed in the TEAR DOWN script . Else it wont work. Re: How to use extent-report in Ready API tool?