Automation testing QTP with VB Script functions interview questions


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

Method: GetFolder?

It returns a Folder object corresponding to the folder in a specified path

Syntax: objFolder = fso.GetFolder(folderSpec)

Arguments:
fso: (Required) The name of a FileSystemObject object previously instantiated.
folderSpec: (Required) The folderspec is the path (absolute or relative) to a specific folder.

Example:    

Set fso=createobject("Scripting.FileSystemObject")
'Folder  for  getting details  
Sourcefolder="D:QTP"  
Set get_folder=fso.GetFolder(Sourcefolder) 
'get the subfolders count in a folder
Set  get_subfolder=get_folder.SubFolders
For  each  sfile  in get_subfolder
'Get the name of each folder
 Msgbox  sfile.name
Next
Set fso=nothing

 




Next 5 interview question(s)

1
Method: MoveFolder?
2
Method: Read?
3
Method: ReadAll?
4
Method: ReadLine?
5
Method: Write?


Comments