Contributions
Re: Importing project not working
Yes. The issue was in the single-file vs composed project. I still do not know what started the issue since I was working on that project(as composed) for a few months without any problems regarding loading. I haven't changed the project type or configuration. It could be that once we upgraded from version 3.9.x to 3.30.x default format for loading was changed. We had to manually selectComposite project: truein Project Properties and reload the project.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes0CommentsRe: Importing project not working
Versions might be the culprit. I've created a new dummy project and saved it with version 3.30. It produces only one XML file. Old project made with version 3.9. and stored test suits and APIs in separate folders each with its own XML. I find this strange since I thought after version 2.4 ReadyAPI moved away from single-file to the composite structure.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes2CommentsRe: Importing project not working
Unfortunately, this did not solve our problem. Still, no tests are visible through a desktop application but running with {ready-api-install-directory}/bin/testrunner.shfrom the same project directory executes tests correctly.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsImporting project not working
When importing projects only project-level properties are imported, but no tests. This is the project I've worked on thru ReadyAPI GUI and is integrated with git. After resolving merge conflicts in git repo, project in ReadyAPI GUI no longer shows functional tests. All files and folders describing those tests do exist in the project directory. I've tried checking out an older commit for which surely everything worked correctly, but it was without success. Only project-level properties are visible and no tests. Also, I've tried reloading the project, removing the project from the workspace and reloading it, loading projec in a new workspace... Nothing helps. Is there a why to somehow expunge all data related to that project from ReadyAPI's caches(if there even is such thing)Solved1.4KViews0likes5CommentsRe: Accessing environment from Groovy script test step
I can get an active environment using def env = context.testCase.testSuite.project.getActiveEnvironment() But I can not access Kafka service /endpoint like it's suggested for REST/SOAP service. For example, after the previous line none of the following works: def kafkaService = env.getService('Name of kafka service', com.eviware.soapui.config.ServiceConfig.Type.Enum.forString("KAFKA")) def kafkaService = env.getKafkaServiceAt(0) Autocomplete/code-suggestion is not of any help so I don't know what else is available through env object. When I run following to try to discover something: env.getProperties().each { name, val -> log.info(name + ': ' + val) } Output is: My environment setup is:3 years agoPlace ReadyAPI QuestionsReadyAPI Questions625Views0likes0CommentsRe: Extracting response from Kafka Connection step
Yes, I'll write assertions programmatically. It's a lot of hassle to set up the connection with all properties and retrieving ones from the active environment but it can be done. If you want to set up assertions through GUI you can store Kafka results from this script test step into property storage(on test case or separate test step) and then create another Assertion test step3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes0CommentsAccessing environment from Groovy script test step
I want to get hold of the environment inside groovy script in Groovy test step. Thissolutiondoes not work in ReadyAPI 3.9.1. If there is another way of getting projects APIs and their endpoints in the current environment, that would help also. (KafkaEndpoint to be precise)3 years agoPlace ReadyAPI QuestionsReadyAPI Questions642Views0likes2CommentsRe: Extracting response from Kafka Connection step
Thanks, I'll try this. At first glance, it seems like this is a replacement for the whole KafkaConnection test step. My current setup is KafkaConnection API test step followed by Groovy Script test step. The solution from your answer is implementing KafkaConnection test step as a Groovy script. That's fine, but then I can't easily run (smart)assertions on that Groovy test step. I'd have to write them manually or transfer data into a separate test step and create a new Assertion test step. All in all, it can be modified to work but it's a lot more complicated than it should have been (looking at you SmartBear devs 😡). Anyway, thank youamirse3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1CommentRe: Extracting response from Kafka Connection step
Yes, I tried that, doesn't work. I've also printed out test name in my solution, and it finds correct one. The problem seems to be that Kafka step doesn't have response object accessable by #Response expansion. I'm looking for any other way of retrieving it3 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes0CommentsExtracting response from Kafka Connection step
How to extract a response from successfully passed Kafka Connection step? Step passes and I can see response through GUI. GUI has metaData and Data tabs and actual Kafka messages. Assertions using JSONPath are executed correctly. What I want now is to extract those response values. Tried few ways, none work. 1) Using property transfer TestStep: After selecting "Source:" with Kafka step, the "Property:" drop-down selection is disabled. 2) Using script assertion: messageExchange object which should be available is null:log.info(messageExchange) -> Thu Sep 16:50:54 CEST 2021: INFO: null 3) Using Groovy script test step in step after Kafka connection: script similar to one from other question def prevStep = testRunner.testCase.getTestStepAt(context.currentStepIndex - 1) String responsLocator ='${' + prevStep.name + '#Response}' def response = context.expand(responsLocator) log.info(response) logs empty string. No other field of prevStep is useful or available. Thanks on help 😄2KViews0likes8Comments