How to add Properties(Names) from a text file to Property step
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008
12:11 AM
01-08-2008
12:11 AM
How to add Properties(Names) from a text file to Property step
Hi,
I am new to soapUI,
Is there any way we can write a groovy to load the property names in a .txt, .property or in xml to the property step automatically.
I have some 100's of property to be transfer.
I have to add each property now manually by clicking on the add property panel.
Please help me out on this.
I am new to soapUI,
Is there any way we can write a groovy to load the property names in a .txt, .property or in xml to the property step automatically.
I have some 100's of property to be transfer.
I have to add each property now manually by clicking on the add property panel.
Please help me out on this.
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008
05:43 AM
01-08-2008
05:43 AM
Hi!
if your property-file is a "standard" property-file, you can use the "Load Properties" button in the properties-step window toolbar to load all properties and automatically add them.. otherwise a groovy script can of course be used as well.. use something like
def prop =
testRunner.testCase.testSteps["Properties"].addProperty( "myproperty" )
prop.value ="myvalue"
to create a property and set its value
Hope this helps!
regards,
/Ole
eviware.com
if your property-file is a "standard" property-file, you can use the "Load Properties" button in the properties-step window toolbar to load all properties and automatically add them.. otherwise a groovy script can of course be used as well.. use something like
def prop =
testRunner.testCase.testSteps["Properties"].addProperty( "myproperty" )
prop.value ="myvalue"
to create a property and set its value
Hope this helps!
regards,
/Ole
eviware.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008
08:47 AM
01-08-2008
08:47 AM
Hi Ole,
Thank you for your quick answar.
I want to read the property names and value from a file and display in the Property step.
Is there any way we can read from a xml file and assign it to property step?
Thank you for your quick answar.
I want to read the property names and value from a file and display in the Property step.
Is there any way we can read from a xml file and assign it to property step?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008
10:02 AM
01-08-2008
10:02 AM
Hi!
can you show/attach the file you want to read so I can get a better idea?
regards!
/Ole
eviware.com
can you show/attach the file you want to read so I can get a better idea?
regards!
/Ole
eviware.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008
10:50 PM
01-08-2008
10:50 PM
Hi Ole,
Thanks for you reply.
I got the solution by adding the addProperty.
Thank you so much once again for your quick support.
Thanks for you reply.
I got the solution by adding the addProperty.

Thank you so much once again for your quick support.
