|
|
|
|
Re: Reading file and clipboard content. [message #1710308 is a reply to message #1710303] |
Mon, 05 October 2015 20:11  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.05700 seconds