Forum Discussion
mark_k92
14 years agoOccasional Contributor
Just wondering how you export your results into an xml/txt or html file? In one of my scripts I have added the line: Log.SaveResultsAs("c:\\MyResultLog.xml",0) sure enough it creates the file but this is all it is:
<?xml version="1.0" encoding="UTF-8"
standalone="no" ?>
<!DOCTYPE Nodes
(View Source for full doctype...)>
- <Nodes version="1">
- <Node name="root">
<Prp name="completed"
type="B"
value="-1"
/>
<Prp name="status"
type="I"
value="0"
/>
<Prp name="test type"
type="S"
value="Scriptname" />
<Prp name="computer name"
type="S"
value="bingo-bu" />
<Prp name="root logdata name"
type="S"
value=""
/>
<Prp name="error count"
type="I"
value="0"
/>
<Prp name="user name"
type="S"
value="teamcity" />
<Prp name="warning count"
type="I"
value="0"
/>
<Prp name="root file name"
type="S"
value="RootLogData.dat" />
<Prp name="start time"
type="D"
value="40807.6073301042" />
<Prp name="stop time"
type="D"
value="40807.6076827431" />
</Node>
</Nodes>
Although it does jnot contain any elements described like " testspassed" "testsaborted" etc.Sorry if this seems silly to ask but I haven't had much experience with testcomplete, could you show me how you produced the
<?xml version="1.0" encoding="UTF-8"
standalone="no" ?>
<!DOCTYPE Nodes
(View Source for full doctype...)>
- <Nodes version="1">
- <Node name="root">
<Prp name="completed"
type="B"
value="-1"
/>
<Prp name="status"
type="I"
value="0"
/>
<Prp name="test type"
type="S"
value="Scriptname" />
<Prp name="computer name"
type="S"
value="bingo-bu" />
<Prp name="root logdata name"
type="S"
value=""
/>
<Prp name="error count"
type="I"
value="0"
/>
<Prp name="user name"
type="S"
value="teamcity" />
<Prp name="warning count"
type="I"
value="0"
/>
<Prp name="root file name"
type="S"
value="RootLogData.dat" />
<Prp name="start time"
type="D"
value="40807.6073301042" />
<Prp name="stop time"
type="D"
value="40807.6076827431" />
</Node>
</Nodes>
Although it does jnot contain any elements described like " testspassed" "testsaborted" etc.Sorry if this seems silly to ask but I haven't had much experience with testcomplete, could you show me how you produced the
TotalNbTestsFailed.txt files and all of those.
Related Content
- 5 years ago
- 8 years ago
- 9 years ago
- 14 years ago
Recent Discussions
- 3 days ago