09-09-2008, 02:57 PM
Code:
<Environment>
- <Variable>
<Name>Path</Name>
<Value>C:\Documents and Settings\TulasiV\My Documents\Vamshidoc\</Value>
</Variable>
- <Variable>
<Name>DataBase</Name>
<Value>MDB</Value>
</Variable>
- <Variable>
<Name>TestCaseID</Name>
<Value>1</Value>
</Variable>
- <Variable>
<Name>TestCaseDiscription</Name>
<Value>1-QuickSearchRun_03-Sep-08_15-45-27</Value>
</Variable>
</Environment>
The above is my XML structure, I am reading the value using the following code, for the XML path I am using the environment variable.
Code:
XMLpath =Environment.Value("QTPxmlPath")
Environment.LoadFromFile =(XMLpath&"\Vamshi.xml")
TestCaseID=Environment.Value("TestCaseID")