loginmm
13 years agoContributor
Not able set a For loop to run the block of statements
Hi,
I added a For loop for my Keyword tests. I am able to add exactly start number, end number, variable and increment value, but not able to set the loop for a block of statments.
When I opened my Keyword test in the script I am able to see the below function
Test1()
I understand that for loop ended with the semicolon and not able to run my statment. How can I assign a block for collection of statements in keyword tests.
Please review the screenshot for the forloop in the keyword tests
If anyone have the videos for the forloop in keyword tests please share
I added a For loop for my Keyword tests. I am able to add exactly start number, end number, variable and increment value, but not able to set the loop for a block of statments.
When I opened my Keyword test in the script I am able to see the below function
function Test1()
Test1()
{
var i;
i = "1";
for(i = 1; i <= 1; i = i + 1);
//Simulates one or several keypresses.
Aliases["CSMART"]["HwndSource_Window"]["Window"]["DockPanel"]["MainRegionItemsControl"]["RadDockHomeView"]["DockPanel"]["docking"]["RadSplitContainer"]["MainSplitContainer"]["DockingRadPaneGroup"]["Grid"]["Grid"]["ScrollViewer"]["RadCaseGridView"]["GridViewRow"]["GridViewCell"]["RadComboBox"]["Keys"]("[Down]");
}
I understand that for loop ended with the semicolon and not able to run my statment. How can I assign a block for collection of statements in keyword tests.
Please review the screenshot for the forloop in the keyword tests
If anyone have the videos for the forloop in keyword tests please share