Updating Dataset file at design time, does not update it in DevTest Step
search cancel

Updating Dataset file at design time, does not update it in DevTest Step

book

Article ID: 73096

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

Modifying a Dataset file  at design time.   

Why Devtest does not update the step result when you modify the values of a dataset file  at design time?

Steps to follow:
*****************  
1. Create a xml file say for  example:  results.xml 
2. In results.xml, write the below lines and save the xml: 
<myXMLValue>TEST1</myXMLValue> 
3. In Workstation, add "Read a File(Disk,URL,or Classpath)" and browse to this file.  
4. Go to the Filters section, add Parse Text from XML option and set the Tag as " myXMLValue"  
and Property as {{myXMLValue}} 
5.  Add Output Log Message  step and add this text,  test = {{myXMLValue}} 

Run the script and check the value of displayed for test. 
it will give as test=TEST1 

7. Now, go to results.xml, and modify myXMLValue tag value to TEST5 and save the xml. 
8. Run the above script and see that the value of test=TEST1 

my expectation is test=TEST5. 

it works when I close the workstation and launch the workstation and run the script again.. 

the value of test=TEST5 is displayed.

Environment

All supported DevTest releases/

Cause

N/A

Resolution

Datasets/Assets are loaded when the test is loaded.  Any changes made to the dataset, will not be shown unless saved and re-load the test case. This is the expected behavior in DevTest.