Automation testing QTP with VB Script functions Interview questions


Total available count: 68
Subject - Software Testing
Subsubject - Automation testing QTP with VB Script functions

For Each...Next Statement?

For Each...Next statement repeats a group of statements for each element in an array or collection.

Syntax:
For Each element In group
   [statements]
   [Exit For]
   [statements]
Next [element]

Arguments:
 Element: Variable used to iterate through the elements of the collection or array. For collections, element can only be a Variant Variable, a generic Object variable, or any specific Automation object variable. For arrays, element can only be a Variant variable.
Group: Name of an object collection or array.
Statements: One or more statements that are executed on each item in group.
 




Next 5 interview question(s)

1
If...Then...Else Statement?
2
Select Case statement?
3
While...Wend statement?
4
With statement?
5
FSO(File system object)?

Comments