It is possible to count only rows number, when working with table in zenno.Hello,
I have a log csv file that i want count number of lines that the two first columns value ar A B for exemple.
By regex... Delete line>Delete all lines that do not match regex and then count remained lines.I know, but i wonder if there is a manner to really count success times in log file etc...
If you want to count project execution successes, use the following C# snippet:But is there any way to make a project run the number of success required ? at the end of each template, it counts success lines in log file, then decide if achieved or not yet... ?
var name = "Project name";
var tasks = ZennoPoster.TasksList;
foreach(var task in tasks)
{
var doc = new System.Xml.XmlDocument();
doc.LoadXml("<Task>" + task + "</Task>");
var nameNode = doc.SelectSingleNode("Task/Name");
if(nameNode != null && nameNode.InnerText.Equals(name))
{
return doc.SelectSingleNode("Task/ExecutionSettings/DoneSuccesfully").InnerText;
}
}
Snippet result returns number of successful executions of certain project in ZennoPoster, which you should specify instead of "Project name".But how to count the number of successes.. i didn't understand it well