@BenoitB , The test is done in Keyword but I converted it into a script so you can review it. See below.
What the script is doing is finding a patientID and clicking on an image so it can open in the window display, when this is done the process is called.
To test the function you send me, I perform the test manually to get the process to appear in the TaskManager, once the process appears I run the ProcessFinder() script to test it, but it returns "process not found" with the process still in TaskManager. Using the manual test steps should work as well because the Process function is checking what is in the TaskManager.
//USEUNIT FindFolder
//USEUNIT ProcessFinder
function CheckPS()
{
var PatientID;
PatientID = "NoPatient";
//Clicks the 'linkMenupatient' link.
Aliases.browser.pageImagenet.linkMenupatient.Click();
//Waits until the browser loads the page and is ready to accept user input.
Aliases.browser.pageImagenet.Wait();
Project.Variables.TritonPatient1.Reset();
for(; !Project.Variables.TritonPatient1.IsEOF();)
{
//Clicks the 'textboxPatientid' object.
Aliases.browser.pageImagenet.textboxPatientid.Click(77, 5);
//Clicks the 'textboxPatientid' object.
Aliases.browser.pageImagenet.textboxPatientid.Click(56, 9);
Aliases.browser.pageImagenet.textboxPatientid.SetText(Project.Variables.TritonPatient1.Value("TritonPatient"));
Aliases.browser.pageImagenet.buttonAll.ClickButton();
Aliases.browser.pageImagenet.cell2.Click(66, 8);
//Clicks the 'panel' object.
Aliases.browser.pageImagenet.panel.Click(72, 75);
//Waits until the browser loads the page and is ready to accept user input.
Aliases.browser.pageImagenet.Wait();
if(Aliases.browser.pageExam.vgSvgslice0.Exists);
//Right Click BSCAN
Aliases.browser.pageImagenet.vgSvgslice0.ClickR(347, 138);
//Click PixelSmart option
Aliases.browser.pageImagenet.textnodeProcessingmovingaverage.Click(25, 13);
//Runs a script routine.
WaitForButton();
//Runs a script routine.
ProcessFinder();
//Checks whether the 'contentText' property of the NameMapping.Sys.browser.pageExam.panelResult.panel object equals 'PixelSmart
aqObject.CheckProperty(NameMapping.Sys.browser.pageExam.panelResult.panel, "contentText", cmpEqual, "PixelSmart\nClose\nON\n0");
//Runs a keyword test.
KeywordTests.FileProperty.Run();
//Delays the test execution for the specified time period.
Delay(2000);
//Runs a script routine.
FindFolder();
//Delays the test execution for the specified time period.
Delay(2000);
//Clicks the 'linkMenupatient' link.
Aliases.browser.pageImagenet.linkMenupatient.Click();
//Waits until the browser loads the page and is ready to accept user input.
Aliases.browser.pageImagenet.Wait();
Project.Variables.TritonPatient1.Next();
}
}
======================================
function ProcessFinder()
{
Sys.Process("octDataParser").Exists ?
Log.Message(Sys.Process("octDataParser").CommandLine) :
Log.Message("Process not found !");
}