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 Posted / gaytri

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is meant by source control?

1700


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1031


What is action split and the purpose of using this in qtp?

541


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

4703


can u please explain what is the exact difference between qtp8.2 and 9.0

1689






How to handle the exceptions using recovery secnario manager in quicktest professional?

645


Explain the types of object repository?

562


What is the difference between a Function and Action in QTP?

594


Explain object spy in qtp.

596


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

643


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1503


How many types of recording modes in qtp?

600


What is checkpoints for quicktest professional?

553


Diff b/w test scenario's and test Procedures?

1641


Can we run test with out adding object in object repository? How it is possible?

555