Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Reading file and clipboard content.
Reading file and clipboard content. [message #1705130] Wed, 12 August 2015 06:39 Go to next message
Eclipse UserFriend
Discussion topic for blog post https://www.eclipse.org/rcptt/blog/2015/08/12/file-and-clipboard-content.html

Kind regards,
Ulyana.
Re: Reading file and clipboard content. [message #1708468 is a reply to message #1705130] Wed, 16 September 2015 16:04 Go to previous messageGo to next message
Eclipse UserFriend
When would it be available?. In 2.1.0.201509152323 Nightly?
Re: Reading file and clipboard content. [message #1708481 is a reply to message #1708468] Wed, 16 September 2015 22:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi Austin,

Yes, it is available in 2.1.0 nightly builds.

Kind regards,
Ulyana.
Re: Reading file and clipboard content. [message #1710303 is a reply to message #1705130] Mon, 05 October 2015 17:48 Go to previous messageGo to next message
Eclipse UserFriend
Does "to-clipboard" command supports copying tests from a Dialog and setting the value to a variable or Parameter in RCPTT.
e.g. From "About Eclipse" dialog copy "Build id" value (20150621-1200) from the dialog to the clipboard and use this value for verification in the test case.

If this is not supported via to-clipboard, is there any other way to achieve this?
Re: Reading file and clipboard content. [message #1710308 is a reply to message #1710303] Mon, 05 October 2015 20:11 Go to previous message
Eclipse UserFriend
Hi Senthil,

You don't need to-clipboard command to verify the value from a dialog.
You can do it switching to assertion mode , so your code will be:

get-view "Test Explorer" | get-tree | select p1 | get-menu "New/Test Case" | click
get-window "New Test Case" | get-editbox -after [get-label "Test Case"] | get-property text
| equals "Name cannot be empty" | verify-true

Of course, if you need you can assign the text value to a variable for further usage in a test.

get-view "Test Explorer" | get-tree | select p1 | get-menu "New/Test Case" | click

let [val -name textVar -value [get-window "New Test Case" | get-editbox -after [get-label "Test Case"] | get-property text]]{

$textVar | equals "Name cannot be empty" | verify-true

}

Kind regards,
Ulyana.
Previous Topic:How to record widget access based on widget IDs
Next Topic:[SOLVED] Works with variables
Goto Forum:
  


Current Time: Fri Jun 20 03:34:36 EDT 2025

Powered by FUDForum. Page generated in 0.05700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top