ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Code Snippets  >>  Scripts_Markup Code  >>  VB Script Code
 
 


 

 
 PHP Code interview questions  PHP Code Interview Questions
 JSP Code interview questions  JSP Code Interview Questions
 ASP Code interview questions  ASP Code Interview Questions
 CGI Perl Code interview questions  CGI Perl Code Interview Questions
 JavaScript Code interview questions  JavaScript Code Interview Questions
 VB Script Code interview questions  VB Script Code Interview Questions
 Shell Script Code interview questions  Shell Script Code Interview Questions
 Python Code interview questions  Python Code Interview Questions
 WinRunner Code interview questions  WinRunner Code Interview Questions
 HTML DHTML XHTML Code interview questions  HTML DHTML XHTML Code Interview Questions
 XML interview questions  XML Interview Questions
 Scripts_Markup Code AllOther interview questions  Scripts_Markup Code AllOther Interview Questions
Question
how to use textfile for taking value for parametrization 
instead of datatable or global sheet
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to use textfile for taking value for parametrization instead of datatable or global sheet
Answer
# 1
open notepad enter the following:

name (press tab)mark
ram (presstab)45
priya(press tab) 56

save the file as .txt

open the tool:
right click in the first cell and select import file
select the saved notepad file

now the entered values have been populated in the datatable
 
Is This Answer Correct ?    0 Yes 0 No
Sunitha S
 
  Re: how to use textfile for taking value for parametrization instead of datatable or global sheet
Answer
# 2
Hi Sunitha

u r not Correct!
Username Password
chaitu mercury
vamci mercury
This is Actually Procedures

Set fso = CreateObject("Scripting.FileSystemObject")
Set fs  = fso.OpentextFile("Path of the file")

While AtendoftheLine <> 0
f =  fs.ReadLine
x = split(f," ")
Msgbox x(0)
Msgbox x(1)
Browser(Browser).Page(Page).WebEdit(username).Set x(0)
Browser(Browser).Page(Page).WebEdit(Passwrod).Set x(1)
wend

i think its working try this.........
 
Is This Answer Correct ?    0 Yes 0 No
Chaitu
 
 
 

 
 
 
Other VB Script Code Interview Questions
 
  Question Asked @ Answers
 
how to write a program to accept names and marks of 10 students from the user and display the names and markes of only the passed students. Marks greater than or equal to 35 is considered as pass.  1
how to use textfile for taking value for parametrization instead of datatable or global sheet  2
How to write a reusable function for testing an "Button" Objects in a page without passing the page name to a function? (Think if page names are dynamic and doesn't have any pattern matching between each page). Send me code which works in QTP 9.2.....  2
 
For more VB Script Code Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com