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  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
Hello Everybody,

How to maintain the page state in QTP.
My scenario is:
1. I opened a notepad file. 

2. Entered some text in the notepad file. 

3.And changed the font type and color of the notepad file. 
And saved that. 

4.Now next time when I will open the notepad it is showing 
the changed font type and color, rather than the default 
values. 

Please provide the code.

Thanks,
Gaytri
 Question Submitted By :: Gaytrisareen
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri
Answer
# 1
In notepad after writing some text and then saving that 
file as .txt again open the notepad change the font 
size,font type,etc and write some text and save
Now onwards ur notepad will display the text settings as 
mentioned in the previous settings until u again change 
those settings,It is the nature of the Windows Operating 
Syytem
For Example,If a text is written on notepad and saved on 
system1
and again a text is written on notepad asn saved on system2
   
Now copy text file on system1 to system2 either by using 
network or mail any way,but the text will dispaly the 
current settings of notepad and vieversa in case of system2

So,Qtp also maintains current page state of that particular 
system as the Windows Operating Sytem maintains
 
Is This Answer Correct ?    1 Yes 0 No
Santhosh
 
  Re: Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri
Answer
# 2
Hi Santosh,

I think you are not getting my query. Actually what is 
happening:
1. Suppose I opened a notepad file and wrote some text, now 
here by default font type is courier and size is:10 and 
changed the font type and size i.e. i changed the font type 
to Curlz MT and size 14 and saved that file and closed that.
2. Now next time when i am opening the new notepad file and 
writing some text there, then text is displayed in Curlz MT 
and font is 14.

Now what I want here that when after saving the changed 
font type and size, next time when i am opening new notepad 
file then it should show font type as "Courier" and size 
as "10".

I want to capture that original state i.e. when i will 
capture the empty notepad file..is it possible that all the 
properties of that page is capture automatically? Or I have 
to capture each and every property of the notepad.

Thanks,
Gaytri
 
Is This Answer Correct ?    1 Yes 0 No
Gaytri
 
 
 
  Re: Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri
Answer
# 3
Hi gayatri,
Santosh has given the correct solution. whenever u make a
change the changes are saved in the Windows folder. Notepad
is nota separate application like WinAmp or Office.The
reason is due to OS..

Thanks & regards,
Saravana
 
Is This Answer Correct ?    1 Yes 0 No
Saravana
 
  Re: Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri
Answer
# 4
Hi,

I think you must have understood the issue by now.

Actually, Notepad is a low-level text editing software 
provided along wiht WIndows OS. I has very limited editing 
facility. So once the font propeties of Notepad are 
changed, it remains the same until it is changed again.
It changes is software-specific, not document-specific as 
with MS Word.

So if you want that Notepad should display the original 
state whenever you open it, record the previous font state 
using QTP and set the recorded state back before performing 
some action on Notepad.

Hope this clears your issue.

Regards,
 
Is This Answer Correct ?    1 Yes 1 No
K.p.pradeep
 
  Re: Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad file. 2. Entered some text in the notepad file. 3.And changed the font type and color of the notepad file. And saved that. 4.Now next time when I will open the notepad it is showing the changed font type and color, rather than the default values. Please provide the code. Thanks, Gaytri
Answer
# 5
Thanks A Lot to all of you...:)
 
Is This Answer Correct ?    1 Yes 1 No
Gaytri
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Pls anyone, tell me the script in QTP to find the number of links, and images in a webpage. Verry very urgent. I shall really be very thankful  2
anyone can explian about types of "Triggere Events" in QTP  1
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.  1
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c  5
Is QTP a compiler or interpreter..? can you we execute a QTP Script file in a another system which does not have QTP installed..?? Virtusa4
What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance. Polaris9
can we take 'dim my pen is good' as a paramerter  2
with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script? Ordain-Solutions2
User defined function in QTP Lehman-Brothers2
how we connect oracle or sql data server database to qtp Tanla-Solutions2
how to capture objects of remote deskop as it is capturing only window. Wipro1
Hai anyone please "Explain about Framework in QTP?"  5
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, as i'm not in a possition to afford any 'Fee' to join in any institutions. Hence, if possible, kinldy mail PDF file to my mail-ID: chakri_avala@yahoo.co.in Regards, Chakradhar Yadav. IBM84
Where u will use output checkpoint in QTP?  3
how qtp identifies objects of application. Intel5
How to create runtime property for an object?  6
Can anybody give the script to addsheet, add column,add values under that column in the rows?  2
What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please.......... AZTEC7
where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code  3
wht is the difference betn check point and output value? BirlaSoft4
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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