Forum Discussion

jrziggy's avatar
jrziggy
Occasional Contributor
5 months ago

Run Test Case properties not populating for Data Source based items

I'm trying to pass custom test case properties from one test suite (Suite A, Test Case A) to another test suite (Suite B, Test Case B) within the same project by using the Run Test Case test step in Test Case B that calls Test Case A. The challenge is that the properties populated by Data Source entries do not transfer.

I have tried a couple methods. In the first, simple method I'm calling directly to the properties of the Test Case A (in Suite A) from Test Case B (in Suite B). Again, the custom test case properties fields from Test Case A that are populated with data source entries are blank when pulled by Test Case B. The static properties are available.

Example:

TestSuiteA
   TestCaseA
      TestStepA (pull data source firstNameRandom)
      Custom Property for TestCaseA named firstName: ${TestStepA#firstNameRandom}

TestSuiteB
   TestCaseB
      TestStepB (SOAP call includes input field value of property from TestCaseA ${#[TestSuiteA#TestStepA]#firstName})

----------

Since that didn't work, I used a Run Test Case directly as a starting test step in Test Case B that ran the Test Case A. Still, the properties from Test Case A that were created by data source pulls were still not available to Test Case B.

TestSuiteA
   TestCaseA
      TestStepA (pull data source firstNameRandom)
      Custom Property for TestCaseA named firstName: ${TestStepA#firstNameRandom}

TestSuiteB
   TestCaseB
      TestStepB1 Run Test Case (run TestCaseA)
      TestStepB2 (SOAP call includes input field of property from TestStepB1 - but the data source field property I need is still blank)

So, how do I get a test case property to persist when it's a dynamic property without using a project or global property? 

1 Reply

  • jrziggy's avatar
    jrziggy
    Occasional Contributor

    I think I found the issue; that in Test Case B we were looking to the test steps in Test Case A when we should have been looking at the Test Case level properties, not test step properties.