francisd84
8 years agoContributor
Task.State always returns 1 (idle) event if task is running.
Hi there,
I'm experiencing an undesired behavior when I try to get the realtime state of a task running from a Job in NetworkSuite.
My network suite has 1 job with 7 tasks running simultaneously through TestExecute.
In 1 task, I ask at each 5 minutes the state of 3 tasks using CodeSnippet in a Keyword Test: NetworkSuite.Jobs.ItemByName("JobName").Tasks.ItemByName("TaskName").State
Each time I call this code, I got "1" as response (which means Idle) even if all tasks are in running state.
Not sure if I'm doing the right thing to get the Task status or if it is an issue.
Thanks a lot for your help!