GWT GUI testing - gwt

I have just started working on GWT as my company is using it. However the problem is , there is not much documentation or tutorial.
I have created a dummy app as given in GWT tutorial.
The app create a GUI like this. I am able to write test cases, for functional use case, but I am not sure how to test the GUI components. For e.g. If i press on add button , it should add a row to table, how can i write the test for this.
Note: I was tryin to do GWTMockito, but was unable to find any resource.
Any help would be really appreciated.

Related

Delphi Popup Window/Form

I am new to Delphi and I am using RAD Studios XE8. I am developing a windows program that needs an options button. I am trying to create a form that when the button is hit, it opens the form. I am having trouble finding out how to do this or a tutorial online. Any insight would be helpful such as what I should google, or a link to a tutorial on how to do this or a walk-though video. I have a strong feeling that I may be using the wrong terminology as well. Any help would be nice.
Here is something to get you started:
Create a forms application (eg. with main form named Form1)
Create a second form (eg. with name Form2)
Create a button on first form in designer
Double click the button in the designer
IDE will open editor and create a handler for you - this is where you have to put the following code: Form2.Show();
Run and test
I would advise you try at least several tutorials like these before trying to write your own program:
Delphi for beginners: My First Delphi Program
Simple calculator tutorial

How to test WPF components using NUnit?

I am trying to test each components of my WPF application by using NUnit. But how to test the graphical components like button, grid, textblock, richtextbox etc?
Take a look at Teststack.White
.
Pretty easy to use:
Start application.
Attach app process.
Find Window by (SearchCriteria).
Get element you want to test by Window.Get(SearchCriteria)
Test whatever you want
Tutorial Link
Cheers

Auto form filling

I have a requirement like I need to fill an online form automatically. (Auto form filling).
Means I need to create an application in which clicking on the "Auto fill” button it will open the form in browser (form is another website page) and fill the data automatically.
The data (which may change each time) I will supply from my application. So first I thought of implementing the functionality using iMacro.
But later I realized I can’t call this imacro from an application if it is free version. So please suggest me some idea to achieve this functionality.
Thanks.
as far as i under stand your problem i would say try sikuli ..it just a simple you can say a compiler and a language which uses image recognition and you can make autobot through this and a very easy to learn ..

Has anyone made explorercanvas work with GWT?

Has anyone made explorercanvas work with GWT? Can you share the exact code?
I see a lot of references to explorercanvas with GWT. For example: http://code.google.com/p/explorercanvas/wiki/Instructions But these are always filled with caveats and complaints. I haven't seen any complete solutions.
Yeah I have done so for a project. I created a module which you can inherit and use in your gwt application and use the GWT Canvas class to write your code. You can see the details in my blog.
http://ummeessa.blogspot.com/2011/09/gwtcanvas-on-ie7-and-8.html
Hope the blog will help you creating your own module.
I have used my module in a project to create charts using canvas. It works fine in IE7/8 and I am sure there should be no issues. Everything which is supported by excanvas works in my module.

Testing Facebook application written using GWT

I'm currently writing a facebook application using GWT on Eclipse, how can I test the application with all the interaction??
If you mean how can you write tests for your whole working application, you might want to have a look at Selenium (http://seleniumhq.org/). There are a variety of ways of using it, but essentially you can use it to automate a browser and click on elements, enter text, verify that you can see the correct result.
With GWT you will need to use "ensureDebugId" method on UiObject and add
to your gwt.xml file so that you get repeatable element ids that you can use in your tests.