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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
hai there..this is chandu..i have a txt file which 
containing 1000 lines but at a time i want to retrieve 50 
lines..after 50 lines i required to retrieve 51-100..like 
that i want...so could anybody help me in this...thanks in 
Advance..
 Question Submitted By :: Chandu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
Answer
# 1
1st of all the txt file data import into the datatable 
using filesystemobject.

After completion of import the data how many rows u want u 
can retrive using for loop.


you have any quarries regarding the same plz contact me or 
mail me
gi_raju@hotmail.com
9823257761
 
Is This Answer Correct ?    0 Yes 0 No
King
 
  Re: hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
Answer
# 2
can u give me code
 
Is This Answer Correct ?    0 Yes 0 No
Shavali
 
 
 
  Re: hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
Answer
# 3
Hi, check the Below function,

Public Function Func_ReadFromNoetpad
(str_filePath,int_frmLine,int_toLine)

Set fso = CreateObject("Scripting.FileSystemObject")
Set Notepad = fso.OpenTextFile(str_filePath,1)

int_Value = 0

Do While Notepad.AtEndOfStream <> True
      getLine  = Notepad.ReadLine
     int_value = int_value+1

   If int_Value => int_frmLine and  int_Value <= 
int_toLine  Then
	   msgbox  getLine
   End If
   
   Loop

Set Notepad = Nothing

End Function


      Here "str_filePath" is location of the text file in 
ur local machine, "int_frmLine" is for from which line u 
want to get the data and "int_toLine" is for to which line 
u want to get the data.

   for example If u want to get the data from 20 to 30

Func_ReadFromNoetpad "C:\Documents and 
Settings\sdevarapalli\Desktop\sample.txt",20,30

Note: Here i used msgbox to display the data, becoz i don't 
the exact scenario what u want. If u send me what u want to 
do with that i can update this function.

If any queries or concerns please mail at :

nanda.dreddy@gmail.com
 
Is This Answer Correct ?    0 Yes 0 No
Nanda.d Reddy
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What are the advantages of QTP over WinRunner? CTS4
If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing. iGate2
is it possible to check the text displayed in the tool tip using QTP? if so, how?  3
How can I find out whether a word in a string is existed or not for example "QTP IS A POWERFULL TOOL FOR AUTOMATION" How can i find out whether "powerfull" is existed in the above string or not Could anyone answer it? Livetek2
WHAT AREV THE STEPS BETWEEN TEST cASE AND Script generation?  1
what is Defect density, defect leakage, defect age,latentbed,yasid testing, interface Syntel3
I have a Webedit object. some text is entered in that object I want to know the font sixe of that text.How could I do this using QTP? This is a requirement for me. I am happy if any one help on this GE3
what are the areas that cannot be tested using an automated tool? list a few  1
how can i call an external action,which is not added external action of an action? Ordain-Solutions2
if interviewer asked about the framework used for automation how we will handle the question..means what should be the answer..plz help..which framework u r used in our company? iGate1
In our application (Web based application)we will get a pdf file and we have check a particular text in that pdf. Can any one tell how to check text in a pdf file. In the same pdf file it generating some links and I have to click that links. QTP unable recognizing that links, even id did record and playback qtp does not generating any script. Can any one help me….?  5
Interviwer asked, How many years exper.. on QTP? I said, total 2 yrs exp in manual and QTP. QTP only current project arround 3 months. then interviewer ask , HOW BOLD YOU QTP? What you say?  1
What are Add-ins availble in licensed version QTP8.2 TCS1
HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview. CTS4
How can you connect the database with QTP?  2
how can we group that these test cases only should be automated and in which order you execute that test cases Satyam3
How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.  1
how you have used object libraries? plzzzzz do answer  1
What scripting language QTP of?  3
How to open an application through scripting?  7
 
For more QTP 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