Larva TestTool Params/Session variables?






Home Forums Ibis Adapter Framework Larva TestTool Params/Session variables?

This topic contains 2 replies, has 2 voices, and was last updated by  Tom van der Heijden 1 year, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2165

    I was looking for some documentation on the larva testtool and found this tutorial. It states that for basic scenario’s you can have a setup like:

    scenario.description = Happy flow
    scenario.active=true
    
    sender.adapter.className = nl.nn.adapterframework.senders.IbisJavaSender
    sender.adapter.serviceName = testtool-adapter
    
    listener.Mailer.className = nl.nn.adapterframework.receivers.JavaListener
    listener.Mailer.serviceName = testtool-Mailer
    
    step1.sender.adapter.write =HappyFlow/ApiRequest.txt
    step2.listener.Mailer.read =HappyFlow/mailer.txt
    step3.listener.Mailer.write =HappyFlow/mailerResponse.xml
    step4.sender.adapter.read = HappyFlow/ApiResponse.json

    It works great but now I have one big problem… session variables.
    I need to input strings and filestreams in the ‘sessionKeys’.

    Is there someone who can tell me how to solve this problem?

    #2181

    Niels Meijer
    Participant

    Hey Tom,

    We lack good documentation for the testtool at the moment.
    I do have an answer for your session variables:

    
    sender.adapter.param1.name = sessionVariableName
    sender.adapter.param1.value = textvalue
    
    sender.adapter.param2.name = sessionVariableName
    sender.adapter.param2.valuefileinputstream.absolutepath = path-to-your-file
    

    If you use this before your steps. It will provide the session variables you want.

    So your scenario will look like this:

    
    scenario.description = Happy flow
    scenario.active=true
    
    sender.adapter.className = nl.nn.adapterframework.senders.IbisJavaSender
    sender.adapter.serviceName = testtool-adapter
    
    listener.Mailer.className = nl.nn.adapterframework.receivers.JavaListener
    listener.Mailer.serviceName = testtool-Mailer
    
    sender.adapter.param1.name = url
    sender.adapter.param1.value = http://ibissource.org
    
    sender.adapter.param2.name = file
    sender.adapter.param2.valuefileinputstream.absolutepath = C:/temp/text.txt
    
    step1.sender.adapter.write =HappyFlow/ApiRequest.txt
    step2.listener.Mailer.read =HappyFlow/mailer.txt
    step3.listener.Mailer.write =HappyFlow/mailerResponse.xml
    step4.sender.adapter.read = HappyFlow/ApiResponse.json
    

    Good luck!

    #2182

    Thanks Niels!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.