Forum Discussion

gcurrie's avatar
gcurrie
Occasional Contributor
11 years ago

Loading data - Registering users

I am attempting to register users to our site using a SOAP UI runner inside LoadUI:

1) DataSource (CSV containing all data)
2) Property Transfer (to 3 HTTP requests)
3) Registration page
4) Extract p_auth (p_auth token used inside the URLs)
5) Submit PID (ID, client_ID, DOB)
6) Submit Security Questions
7) Submit Username/Passwords
DataSource Loop

Within LoadUI I'm using the Fixed Load (bottom connector) --> SoapUI runner (top connector)
SoapUI running (middle-bottom connector) --> Fixed (top right connector)
SoapUI (off bottom left and right) --> Table Logs

One issue I'm facing is that only ever other line from the data source are making it through the registration process. As far as I can tell the SoapUI components are correct simply because when running the project within SoapUI, each user gets registered as expected. It's only when run through LoadUI are users getting skipped.

Beyond Frustrated,
Des Moines IA
  • gcurrie's avatar
    gcurrie
    Occasional Contributor
    p_auth extract script:

    import java.net.*

    def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
    def holder = groovyUtils.getXmlHolder( "Registration#ResponseAsXml" )

    def action = new URL(holder.getNodeValue("//form[@id = '_Registration_WAR_Registration__registrationNonAccessCodeForm']/@action"))
    def paramMap = action.query.split('&').collectEntries { param ->
    param.split('=').collect { it }
    }
    def p_auth = paramMap['p_auth']
    testRunner.testCase.setPropertyValue("p_auth", p_auth)
    log.info "p_auth : $p_auth"
  • Yes, I read that thread and can see that the groovy libs are different between the products. That knowledge does not help resolve my problem on my system. Furthermore, that thread is referencing a newer version of the products than the one I am using.

    The thread closest to my question is the one titled "LoadUI custom plugin: JVM and classloader", to which I posted a question asking if the OP ever got it to work on their system. Nobody responded to my question on that thread, so I started this thread. So far, I have not found any information on this forum that describes how this can be made to work.