Results 1 to 5 of 5

Thread: How i can test GXT application by siesta tool

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
      0  

    Default How i can test GXT application by siesta tool

    Hello Admin

    I have GWT EXT (GXT) application , how i can use siesta tool?


    Thank You
    Nisreen

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    You need to ask the author... usually on his own site.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha - Community Support Team SamuraiJack1's Avatar
    Join Date
    May 2008
    Posts
    571
    Vote Rating
    6
      0  

    Default

    Hi,

    Well, GXT assumes that your application is written in Java and it produces HTML/JS output after compilation. Using Siesta you can test GXT application at the lower level, as any other "plain" html page (using CSS selectors, element ids etc). You can use a generic Siesta.Test.Browser test class for that.

    However you will not benefit from the higher-level ExtJS assertions, which operates on JavaScript objects (and provided in Siesta.Test.ExtJS class)

    For getting started guide please refer to: http://bryntum.com/products/siesta/docs/#!/guide/siesta_getting_started

  4. #4
    Sencha User
    Join Date
    Mar 2013
    Posts
    15
    Vote Rating
    0
      0  

    Default

    Hi All,

    Can any once suggest a testing tool(Automated or Manual testing for Sencha GXT 3.0.X applications?

  5. #5
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    I just gave a quick talk on the (very first) monthly GWT Community Hangout about a new tool I've started to help build maintainable automated tests. It uses WebDriver/Selenium to talk to the browser, and requires a small addition to your application to make it testable, but other than that, you shouldn't need to customize your application much to make it testable.

    This is still very much a work in progress - I don't have any public jar files yet because I'm still working on the API, but would welcome any criticism/code review/use cases that you might have to offer. The docs are pretty scarce too - the talk I gave was my first try at opening this up to the world, but I'm continuing to work on this as time permits.

    To my knowledge, this is the first GWT browser testing tool out there that deals with the problem in a comprehensive way (i.e. not assigning so-called debug ids, or using css class names to suggest structure in the app).

    The basic premise is that you shouldn't structure your tests based on the dom that the app builds, but based on the ui that the user interacts with - phrases like "find the panel with heading 'Create a Company'", then "in that panel, find the field with the label 'Company Owner'" should be easy to write, and not dependent on html structure or exactly how you compose presenters/RPC/stores in your app. Some things will need to be a bit specific (Grid and ListView are not interchangable, and have different ideas in how you interact with them), but some are (most fields can be thought of as just text inputs you can type in).

    Link to the hangout video - my talk starts around 24 minutes in and lasts about 10-15 minutes:
    http://www.youtube.com/watch?v=UrkD8CWboDE&t=4m50s
    If there is interest, I'll keep writing about this and putting together more documentation/hangouts.

    Sample app:
    https://github.com/niloc132/gwt-driver-sample/
    This project only has a handful of commits that build from a simple app to having a few tests that fail, and finally to fleshing out the app slightly to make those tests pass.

    GWT-Driver, the main inner workings that bind WebDriver and GWT Widgets:
    https://github.com/niloc132/gwt-driver/

    GXT-Driver, a library specific to GXT 3, adding support for a few main pieces of functionality. So far it is just forms, windows, and a bit of menus, but grids are slowly on the way:
    https://github.com/niloc132/gxt-driver/

    As said in the talk, you can find me most days on freenode in ##gwt and #extgwt if you'd like to chat more about this topic and help keep this project going.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •