Aurore
6 years agoNew Contributor
Log functions
Hello, Can we define another Log function than existing ones (Checkpoint, Error, Event, Message and Warning) which could be displayed in Test results ? Aurore
You can use the action Push and Pop Indicator Text, all it does is change the text in that little box, it will not be logged:
For scripts:
https://support.smartbear.com/testcomplete/docs/reference/program-objects/indicator/pushtext.html
Thanks - it works (but does not stay).
It just flashes on the screen. The script is doing a lot of database work and this would need to be reshown after each of hundreds of database updates. THANK YOU. I did not know about this option - but - I'm thinking of using a UserForm that will show the note while the script continues to run.
Thanks Again, BMD
Something like this?
function TestIt()
{
var rowPar = [
"rowPar1",
"rowPar2",
"rowPar3",
"rowPar4",
"rowPar5"
];
for (var i = 0; i < rowPar.length; i++) {
var str = "//tr[@id='" + rowPar[i] + "']/td[contains(@class, 'valdev')]";
//pageParameterDevice.FindElement(str).contentText
Log.Message(str);
}
}
Construct the string, and then pass the str into FindElement()
It works! Thank you very much