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

Answers were Sorted based on User's Feedback



Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad f..

Answer / santhosh

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

Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad f..

Answer / 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

Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad f..

Answer / saravana

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

Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad f..

Answer / k.p.pradeep

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

Hello Everybody, How to maintain the page state in QTP. My scenario is: 1. I opened a notepad f..

Answer / gaytri

Thanks A Lot to all of you...:)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

What does ".mst" stands for? (abc.mst)

3 Answers   Infosys,


How to capture a window in QTP?

0 Answers   IBM, Mphasis,


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

0 Answers   TCS,


i did B.Tech cse and i secured 76%. instead of siting at home ... i would like to do some course. can u suggest me in this.

1 Answers  


Hi, My Application in Microsoft Dynamic Navision, is it compitibale with QTP? if yes then let me know...and also let me know is there any other automation tool availabe to automate Microsoft Dynamic Navision. Thanks Sandip. +91-9714177088

1 Answers  






How does Parameterization and Data-Driving relate to each other in QTP?

2 Answers  


1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). 2. Using descriptive programing, how do you handle changing URLs. Pls anyone, very urgent

2 Answers   Infotech,


Please can you give where can we get good QTP Training at Hi-Tech city Hyderabad?

10 Answers  


I open login gmail page after that QTP is not able to identify the object present in it then what u will do

3 Answers   Accenture,


What is the main difference between desriptive programming and generic functions

2 Answers   HCL,


In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...

4 Answers   Indium Software,


How u call functions in QTP Function to calculate the length of characters in a wor

2 Answers  


Categories