|
Re: Unable to set path value using the set-dialog-result ecl [message #1634140 is a reply to message #1633079] |
Wed, 25 February 2015 05:55 |
|
Hello,
Thank you for contacting us!
We don't show native dialogs while test case execution, because otherwise we couldn't close them technically. When native dialog is open, it disables actions in AUT. So we need to set-dialog-result before opening of such dialog for data to be ready before dialog is closed.
Try to rerecord dialog opening.
This issue was discussed in this topic.
Please let me know if you have any questions.
Yours sincerely,
Olga.
|
|
|
Re: Unable to set path value using the set-dialog-result ecl [message #1635039 is a reply to message #1634140] |
Wed, 25 February 2015 15:37 |
Hernan Wittemoller Messages: 8 Registered: February 2015 |
Junior Member |
|
|
Hi,
Thank you for your reply. I followed your advice and the code worked but seems that I mistakenly thought the set-dialog-result ecl would do something like checking the separators on the path and changing them to the ones used by the OS.
Is there any ecl or other alternative that would do that? I need my test suites to work on both MacOs and Windows systems.
Here's an example of the code I'm using
set-dialog-result File [concat [get-java-property "user.home"] $path]
with [get-window "Export an Anypoint Connector as an Update Site"] {
get-group "Export Settings" | get-button "..." | click
get-button Finish | click
}
Regards
[Updated on: Wed, 25 February 2015 15:39] Report message to a moderator
|
|
|
Re: Unable to set path value using the set-dialog-result ecl [message #1636489 is a reply to message #1635039] |
Thu, 26 February 2015 08:00 |
|
Hello,
The command get-java-property doesn't depend on OS, it outputs appropriate result for the actual OS.
If value of $path depends on OS, you can use command get-by-os.
Take a look at the following line:
log [concat [get-java-property "user.home"] [get-by-os -macosx "/mac" -win "\win"]]
Is it suitable for you?
Please let me know if you have any questions.
Yours sincerely,
Olga.
|
|
|
Powered by
FUDForum. Page generated in 0.03975 seconds