ContributionsMost RecentMost LikesSolutionsRe: Floating license with docker Really? I thought a floating license would do it automatically =/ Good to know. Thank you Re: Uncaught exception polling for ProjectConfig. Hello Did anyone find a solution by now? Re: Use java methods in groovy script I am usually using "as BigDecimal" Example: def id = context.expand ('${testCaseProperties#id}') as BigDecimal but I just tried and it works for Integer the same way. def testnumber_one = "1" log.info "testnumber_one has class: " + testnumber_one.getClass() def testnumber_two = "4" as Integer log.info "testnumber_two has class: " + testnumber_two.getClass() Tue Jun 13 16:34:21 CEST 2023: INFO: testnumber_one has class: class java.lang.String Tue Jun 13 16:34:21 CEST 2023: INFO: testnumber_two has class: class java.lang.Integer Re: How to use the External JAVA libraries with Test Engine hosted on Linux It is working out of the box for my script ( I am using ReadyAPI though) import org.apache.commons.net.ftp.FTPSClient import com.jcraft.jsch.* import java.io.File Can you provide more information about your script? Re: Problems with refresh OAuth2 token Oh cool. I will try that. Thank you 🙂 SiKing Re: Github Action Test Reporter to Export Test Results to GitHub Hi anurag-singh Were you able to solve the issue? I am also looking into getting a report after the run but so far nothing Re: Problems with refresh OAuth2 token my ex-colleague wrote following script as a Event : SubmitListenerBeforeSubmit: It is not working completely as it should (it requests a new token with every request, but so far I had no problems with it) // Import the required classes import com.eviware.soapui.impl.rest.actions.oauth.OltuOAuth2ClientFacade import com.eviware.soapui.support.editor.inspectors.auth.TokenType import com.eviware.soapui.model.support.ModelSupport def authProfileName = "INT_Profile_Name" if(!submit.getRequest().getAuthType().asBoolean()){ return // stop if the auth type is null, for example jdbc requests }else if(submit.getRequest().getActiveAuthProfile() == null){ return // stop if the auth profile is null }else if(authProfileName == submit.getRequest().getActiveAuthProfile().getName()){ // Set up variables def project = ModelSupport.getModelItemProject(context.getModelItem()) def authProfile = project.getAuthRepository().getEntry(authProfileName) def oldToken = authProfile.getAccessToken() def tokenType = TokenType.ACCESS // Create a facade object def oAuthFacade = new OltuOAuth2ClientFacade(tokenType) // Request an access token in headless mode oAuthFacade.requestAccessToken(authProfile, true, true) // Wait until the access token gets updated //while(oldToken == authProfile.getAccessToken()) {} //The sleep method can be used instead of a while loop //sleep(3000) for(int i = 0; i<=3000; i++){ if(oldToken != authProfile.getAccessToken()){ break } sleep(1) } // Post the info to the log log.info("Set new token: " + authProfile.getAccessToken()) } Re: SLM documentation Huhu. Better or specific examples how to use the id-license for all the different integrations would be nice. For example In the part for Maven: There is no clear example where to put the accesskey or your name/password in that pom.xml Cheers Yki Re: ReadyAPI maven plugin configuration regarding the <slm> parameters Huhu TwoFang I was able to figure it out with ChatGPT 😄 It has to be in the configuration part ... <plugins> <plugin> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>3.46.0</version> <configuration> <!--<globalProperties> <value>preemptive=true</value> </globalProperties> --> <slmAccessKey>your-access-key</slmAccessKey> <projectFile>project_folder</projectFile> <printReport>false</printReport> <outputFolder>${project.build.directory}/readyapi</outputFolder> <junitReport>true</junitReport> <exportAll>true</exportAll> <readyApiProperties> <property> <name>readyapi.logroot</name> <value>${project.build.directory}/readyapi-logs/</value> </property> <property> <name>licenseApiAccessForEveryone</name> <value>true</value> </property> </readyApiProperties> ... Re: Automatic cancellation of a test case run Do you have any logs which can suggest it was canceled. Maybe your endpoint is not correctly configured for that environment? I guess you don't have a Setup-Script which cancels the run ? 😁 (I have that for some testcases) def env = testRunner.testCase.testSuite.project.activeEnvironment.name if (env == 'Test') { } else { testRunner.cancel("This testcase can be run only on Test. The active environment is: "+env+".") }