Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Test login dialog before workbenchWindowAdvisor starts
Test login dialog before workbenchWindowAdvisor starts [message #1750796] Thu, 29 December 2016 04:33 Go to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 90
Registered: July 2009
Location: korea
Member

Login dialog test fails before WorkbenchWindowAdvisor is started.
The test is created normally. But, do not run Replay.
How can i test it?

Java Code
public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
    public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
        super(configurer);
    
    public void preWindowOpen() {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        
        ....
LoginDialog loginDialog = new LoginDialog(Display.getCurrent().getActiveShell());
loginDialog.open();
    }


RCPTT test code
with [get-window "Tadpole DB Hub"] {
    get-editbox -after [get-label Email] | set-text "hangum@gmail.com"
    with [get-editbox -after [get-label Password]] {
        set-text [decrypt "testaa"]
        key-type Enter
    }
}
get-button Exit | click
get-window Confirm | get-button OK | click


index.php/fa/27971/0/
Re: Test login dialog before workbenchWindowAdvisor starts [message #1750805 is a reply to message #1750796] Thu, 29 December 2016 08:37 Go to previous messageGo to next message
Artem Kovalev is currently offline Artem KovalevFriend
Messages: 25
Registered: April 2016
Junior Member
Hi Cho,

Please try to add
wait 10000
(waiting 10 seconds) command before your current code
wait 10000

with [get-window "Tadpole DB Hub"] {
    get-editbox -after [get-label Email] | set-text "hangum@gmail.com"
    with [get-editbox -after [get-label Password]] {
        set-text [decrypt "testaa"]
        key-type Enter
    }
}
get-button Exit | click
get-window Confirm | get-button OK | click



thanks, Artem
Re: Test login dialog before workbenchWindowAdvisor starts [message #1750813 is a reply to message #1750805] Thu, 29 December 2016 10:36 Go to previous message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 90
Registered: July 2009
Location: korea
Member

Thanks Artem.
I added 'wait 10000'. But it is same error.
My environment is Eclipse RAP 3.1.0

Previous Topic:AUT workspace changing test does not work normally.
Next Topic:java.lang.OutOfMemoryError: Java heap space in Runner
Goto Forum:
  


Current Time: Sat Sep 22 09:48:22 GMT 2018

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

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

Back to the top