faker or javafaker in open source soap ui project
Hello everybody, i'm trying to use the java library called "javafaker" but i don't inderstand how to import it. I've put the javafaker jar in bin/ext directory and this is what i have in soapui log: Fri Jun 25 13:55:33 CEST 2021:INFO:Adding [............................SoapUI-5.6.0\bin\ext\javafaker-1.0.2.jar] to extensions classpath But after, i always an error like this when i'm trying to initialise my script: import Faker Faker faker = new Faker() log.info faker.name().firstname() Someone already use this library ? Thank's a lot.Solved1.6KViews1like4CommentsData Generator - Change "duplicate each value" property through Groovy
Hello all, I have used a DataSource with DataGenerator type selected, in one of my test cases and I'm trying to set the "duplicate each value" property through a Groovy step. What I'm trying to achieve here is to set this value from a project-level custom property. The test case is setup as shown below and I have managed to go as far as this in my Groovy step: def valueRepetition = context.expand('${#Project#repeatValue}') def objDsStep = context.testCase.testSteps["Data Generator"] // objDsStep is a com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep def objSource = objDsStep.getDataSource() // objSource is a com.eviware.soapui.impl.wsdl.teststeps.datasource.DataGenerator.UI.DataGeneratorDataSource object log.info(objSource.toString()) I've looked through the API documentation but I cannot find which method to call in order to retrieve the generator's properties and update the 'repetitionCount' method . Can anyone provide some help on this? Thanks in advance!968Views0likes2CommentsData source Data generator - loading values from file
I am trying to load my data generator data source from file. The data source has two properties. When I load the file, it puts alll the values as options for both of the properties. How do I load the data into the different properties?1.4KViews0likes3Comments