ContributionsMost RecentMost LikesSolutionsEvents not triggering I was having this problem yesterday intermittently. Updated from 3.52 to 3.54 and now they are not triggering at all. Is anyone else having this issue? Re: Switching Environments Groovy Scripting Thanks richie for the quick response. nmrao Thanks for your help. I followed the instructions and restarted ReadyAPI 3.49.0. The program would not start. I had to move the composite project folder to another directory so ReadyAPI wouldn't pick it up upon load. The program started after this. When I try to import the automation project ReadyAPI closes immediately. Any idea what happened here? I need to restore my project as it has over a month of work. I imagine I have to edit some .XML now? Edit I was able to get the script out of the XML and can now load the project. I think it was a conflict of what env it opened with and what env I specified in ACTIVE_PROFILE. Switching Environments Groovy Scripting I am running automation on a Test Suite. There are 5 Private environments and 5 corresponding Public environments. I can kick off the automation in Jenkins with a starter Environment, i.e. QA. Each run will have to switch to Public 75% through. So in a run, it will have to switch from QA to Public QA, and 4 more switches to follow on the subsequent Jenkins job. I have a script that can switch environments that I borrowed from Smartbear support: def env = context.testCase.testSuite.project.getEnvironmentByName("Public QA2"); context.testCase.testSuite.project.setActiveEnvironment(env) But it does not solve my dilemma. Since I am running the same test suite for all environments I need a script that will switch depending on the current environment. I am by far no JS or JSON coder, I get by, but it needs it to run like this: if QA then Public QA if QA2 then Public QA2 if UAT then Public UAT if ENV1 then Public ENV1 if SITE then Public SITE If someone could code that for me to run in a groovy script I would be forever indebted to you. Re: java.net.SocketException: Connection reset Seems like a networking issue with our public gateway. No fault of ReadyAPI. java.net.SocketException: Connection reset My Test Suite was working yesterday, I didn't do anything to the suite, I didn't even close ReadyAPI overnight and now today my API calls are giving error java.net.SocketException: Connection reset. I updated to 3.47.0 and still the same issue. My other Test Suites are not affected. What seems to be the problem here? SolvedRe: "Get Data" data when saved does not work next run. This issue ceased to be a problem when I switched Environments. I would suggest you configure a new environment than bailing on your hard work. Re: Automatic cancellation of a test case run I also have this problem. Sometime one test case/suite will work and another wont. I just save all work and restart. It's another bug/feature of Ready/API. Can you run a report on a test suite that you have worked on test cases individually? I can run a report on a test suite I run in succession. But I have some manual interventions and the report will not generate correctly if you don't run it altogether. Re: How to get the epoch time in the readyapi using the groovy scripts long epoch = System.currentTimeMillis()/1000 "Get Data" data when saved does not work next run. Using 3.45.0 This issue is causing me trouble mostly in the headers but I have found bodies having the same problem. Example Authorization Header. I do a Get Data, and it looks some thing like this - ${#TestSuite#Testcase#Teststep]#Response#$['data']}, Then I add bearer in front. Now test works fine. I save composite project. Re-test and the test fails with 401. I check Raw date and all I see for Authorization is "Bearer", my token data has disappeared. But the code remains the same in the header value. I'd have some screen shots but I have been running my computer for 3 days without saving now because it's a big project and it can take at least 2 hours to fix it after saving. Solved