Let us simplify this.
The question is: Are there any commands (functions) working with clipboard in WR?
What actually I want to do is to store something
in clipboard (using TSL) which is possible using
Then replaying the script I want to compare with
this clipboard content.
This is possible in Rational Robot using
ClipboardVP - clipboard varification (check)
Is it possible to implement this in WR?
I think if you automate as follows, you have a means - unless Mercury has simplified this in more recent versions - OR - has it in their CSO libray:
At the apporpriate place in a script - perhaps a custom function - invoke Notepad. During recording, when you get to the point where you wish to capture to the clipboard - highlight what you wish to capture and do a CRTL-C. Click on the Notepad Title Bar and do the CTRL-V. Then do you your comparison.
Repeat this with another instance of notepad
use an obj_get_text or the appropriate *_get_text function
use the first method to save a baseline to a file and save tha actual to a file, then do a file compare.
There are many methods - and perhaps you don't even need to go to the clipboard as the following options may work for you:
1) gui checkpoint for text - this is similar to the Robot VP
2) file_compare of a saved baseline and actual
Read up on the gui checkpoints and experiemtn if you have not already done so.
set_clipbrd_text - This function will put the specified string on the system clipboard.
get_clipbrd_text - This function will get the current text from the system clipboard.
CSOLIB2 121,272 bytes 6/6/2000 (NOT 120,873 bytes May 22, 2000)
Executable files csolib2.dll and clipboard.dll (which should be copied to WinRunner's /arch folder) are referenced by scripts cso2_init and cso2load (which should be put in WinRunner's /lib folder).
cso2_init initiates function initcso2() from compiled module cso2load. This adds into the function generator category “cso functions 2” functions.
CSOLIB3 7,856 bytes
There are no executable files in this library.
cso3_init initiates function initcso3() from compiled module cso3load. This adds into the function generator category “cso functions 3” functions.