Forum Discussion

Prudential_UK_A's avatar
Prudential_UK_A
Frequent Contributor
16 years ago

Re: Property Transfer Question

Hi,
I am using a property transfer to take results from one service and add it to request to another.
I find that the request gets overwritten, so when I save the project after a run, the project file/s will contain the newly transferred values.
I am trying to get around this by doing a property transfer to a Properties step first and then referencing the property in the request instead, however it does not seem to work. When I run the property transfer, the transferred values column in the transfer log is empty.
Any ideas 
Regards
Peter

4 Replies

  • Hello,

    That setup sounds like it should work just fine. Could you provide us with your project file so that we can check if there is anything wrong with your setup? Either attach it here or send it to support@eviware.com

    Also, you may want to note that with this setup, your project file will still have the latest transferred values, but in the properties step instead of the request step. You could add a Script TestStep near the end of your TestCase that removes these values if you don't want them to be saved anywhere. This can be done with the following script:


    //Replace 'Properties' with the name of your properties TestStep
    testRunner.testCase.testSteps['Properties'].clearPropertyValues()


    Regards,
    Dain
    eviware.com
  • Hi!

    Thanks. Please try unchecking the "Transfer Text Content" option in the Property-Transfer options, this will transfer the xml contained in the selected node instead of its text content.

    Does that help?

    regards!

    /Ole
    eviware.com