Hi,
this is venkatesh.
Q: I have 10 files in a folder(say D:\). Out of which there
are some .txt, .xls, .doc. I want to know how to get the
count of each file using qtp?
If U have any ans, plz write script for that...
Answer Posted / bathi
set fso=createobject("scripting.filesystemobject")
set objfolder=fso.getfolder("XXX")
set fil=objfolder.files
for each fils in fil
fils1=fils1&fils.name
next
xls=split(fils1,".xls")
msgbox ubound(xls)
doc=split(fils1,".doc")
msgbox ubound(doc)
txt=split(fils1,".txt")
msgbox ubound(txt)
I guess, this will work........
Good Day........
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
Will down time for server and content maintenance/upgrades be allowed? how much?
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
In qtp is it possible to check broken links of a page?
How to release all resources file from the QTP?
what is object and child object.. explain ..if possible give some example for better understanding ..
What is Distributed testing? How does UFT support it?
How to creating an output value using quicktest professional (qtp)?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
Is it possible to change the values of analog recording?