cancel
Showing results for 
Search instead for 
Did you mean: 

Loading Property Values Dynamically from a File

SOLVED
Lschoend
Occasional Contributor

Loading Property Values Dynamically from a File

I need to load a section of my request dynamically each time. I created a property at the test case level called Message ( ${#TestCase#Message} ) and added a Property step that is supposed to read the value from a file.

 

There are 3 steps in my test case:

Load the Message property (the value of the property is defined in the file)

Execute the request (inserts the property value into the request)

Property Transfer (returns the response status)

 

The request has the property name substituted for the dynamic section. However the value is not read when I execute the test case, it only contains the value from when I manually execute from the Property step editor. It merges the property request into the request just fine, and the property transfer is also working, but the value is static and not dynamically loaded.

 

How do I get it to update the property value every time I execute the test case? I am using an external tool that interfaces with SOAP UI so I want to stay away from scripting, just want to use standard SOAP UI steps.

 

Screen shots attached, any and all help greatly appreciated!

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
HimanshuTayal
Community Hero

Re: Loading Property Values Dynamically from a File

@Lschoend ,

 

What you need to do is, In you Test Request Step, replace with below syntax:

 

${Load Message Property#Message}

Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

1 REPLY 1
HimanshuTayal
Community Hero

Re: Loading Property Values Dynamically from a File

@Lschoend ,

 

What you need to do is, In you Test Request Step, replace with below syntax:

 

${Load Message Property#Message}

Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

New Here?
Join us and watch the welcome video:
Top Kudoed Authors