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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to use two instances of UFT on the same machine? If not why?

593


How to creating an output value using quicktest professional (qtp)?

562


I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next

1329


ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS

1519


How to get the particular property value?

606






How to carry out bit map check points in QTP

1759


Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

1617


why you have standardized functions? plzzz guys with real time exp. do answer

1432


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1527


what is defenetion of kiran can u tell me plz CVS, SVN

1565


how to find that tools work well with ur existing system?

1350


Why we load add-ins in qtp?

622


What is Curd testing?

1877


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1398


Name the different types of recording modes?

570