Forum Discussion
ChuckAtIvory
15 years agoContributor
I just created a keyword test that clicked the desktop four times. After the second click, I manually inserted "Run Keyword Test" then converted it to Jscript. Here's what that one looked like.
function Test2()
{
//Clicks at point (706, 763) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(706, 763);
//Clicks at point (1048, 765) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(1048, 765);
//Runs a keyword test.
KeywordTests.Test2.Run();
//Clicks at point (800, 661) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(800, 661);
//Clicks at point (994, 659) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(994, 659);
}
Next I changed the keyword test and change it so it used Run Script Routine. Here's what that one looked like:
function Test2()
{
//Clicks at point (706, 763) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(706, 763);
//Clicks at point (1048, 765) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(1048, 765);
//Runs a script routine.
Test2();
//Clicks at point (800, 661) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(800, 661);
//Clicks at point (994, 659) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(994, 659);
}
If you're using a different scripting language or the above examples don't work for you, I suggest creating a Keyword Test, inserting the "Run Script Routine" command, then converting the keyword test to a script. Check how the script works and you will have an example on how to proceed.
I hope that helps.
Chuck
PS: I can't open your attached screenshots, but I think it's due to a bug in the Forum itself. I've reported the forum bug to SmartBear.
function Test2()
{
//Clicks at point (706, 763) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(706, 763);
//Clicks at point (1048, 765) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(1048, 765);
//Runs a keyword test.
KeywordTests.Test2.Run();
//Clicks at point (800, 661) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(800, 661);
//Clicks at point (994, 659) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(994, 659);
}
Next I changed the keyword test and change it so it used Run Script Routine. Here's what that one looked like:
function Test2()
{
//Clicks at point (706, 763) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(706, 763);
//Clicks at point (1048, 765) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(1048, 765);
//Runs a script routine.
Test2();
//Clicks at point (800, 661) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(800, 661);
//Clicks at point (994, 659) of the 'FolderView' object.
Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(994, 659);
}
If you're using a different scripting language or the above examples don't work for you, I suggest creating a Keyword Test, inserting the "Run Script Routine" command, then converting the keyword test to a script. Check how the script works and you will have an example on how to proceed.
I hope that helps.
Chuck
PS: I can't open your attached screenshots, but I think it's due to a bug in the Forum itself. I've reported the forum bug to SmartBear.