I have data in 2 different windows which needs to be compared. Only specific data needs to be compared not all. The window is getting recognized as a Generic object. Can someone tell me how to go about accomplishing this?
The object I have mentioned about is under AfxMDIFrame (Generic) -> AfxFrameOrView (Generic) -> TabControl. This is the hierarchy.
The Generic object belongs to Afx: class. It is placed under TabControl.
I really don't know whether ClipboardVP will meet the requirement. Let me explain you the requirement.
Assume that there are 2 instances of Notepad application open. Both instances have a file open. Assume it is C:\C1.txt & D:\C1.txt respectively. The file C1.txt contains lot of information. But I am interested in comparing only one such information in C:\C1.txt & D:\C1.txt. Assume the information is value of "Total". The comparison needs to be done for all such txt files under C: & D:. There are almost 50 txt files. I need to loop thru all the files and compare opening the files in C: & D: in two notepad instance one after another. In such a case, will ClipoboardVP help me solve this? What will really help me in providing automation for this scenario?
Why do the text files that you are comparing need to be opened at the time of comparison?
If you are comparing only specific information out of 2 text files (as in your example) you can just use the file Input/Output capabilities of Robot to read the information and then compare the values.
If you also need to test if your files will open and close, then just open them and close the files individually.
An example testflow could be the following:
For x = 1 TO 50
. Open C drive file x
. Open D drive file x
. Close C drive file x
. Close D drive file x
. Read value of "Total" from C drive file x
. Read value of "Total" from D drive file x
. Compare values
I just gave an example of the problem I have. It is not really a Notepad I'm testing. I cannot used File I/O in this scenario. It is an application designed for financial purpose. The financial application I am opening has lot of books. I need to open one book after another in two environments (say QA & PROD) and need to compare the "Total" value. There are around 50 books for which I need to compare the values. Hope this gives u info on the problem I have in hand.