locked
AUtomated Javascript Test Framework? RRS feed

  • Question

  • Hi,

    I've got some javascript classes that are used in CRM 4 forms.

    I'd like to build a tests that request a CRM record, interact with the CRM form fields and assert some tests based on the controls state.  Ideally I'd like to be able to execute the tests from the command line so they have the potential to become part of an automated build test. I prefer open source (ie free) software or MS based products (have MSDN subscription)

    I'm look for either an existing framework I can use, or a recommended approach, and/or list of software options.

    Jmeter seems to fit my requirements, but I've only see a quick demo of it and have not used it for real.

    Does any one have any experience in this area and if so I'd appreciate some options on what works and what does not work.

    Kind regards

    Si

     

     


    @_Simon_Jackson http://www.simonjackson.info/ MBCS MCBMSS MCBMSP MCSD MCDBA MCAD MCSA
    Tuesday, June 15, 2010 6:53 PM

Answers

All replies

  • Here's what I'm going to try and test with for now, still would love to know about anyone else's experiences, around automated testing and CRM.

    Unit Tests for JScript

    I've come across Js Unit which also seems to fit the bill http://www.jsunit.net/, this can be automated by Ant and Nant so it can be part of a larger automated build process/continusios integration and also has a server based component.  It's been around for ages, since 2001.  And has a group with some form of support , the only problem is I don't think I am not going to be able to mock a CRM form so my unit tests will need special custom entities as part of my test framework and therefore will be integration tests pretending to be unit tests, rather than very fast quick unit tests.

     

    Integration/Smoke/Performance Tests

    For all other testing Jmeter http://jakarta.apache.org/jmeter/ seemts to fit the bill as it can be used to integration and/or smoke test nearly anything in CRM and you can record your actions to define your test cases.

     

    If you've tried any testing against CRM I would love to know what worked for you.

     

    Kind regards

    Si

     

     

     


    @_Simon_Jackson http://www.simonjackson.info/ MBCS MCBMSS MCBMSP MCSD MCDBA MCAD MCSA
    Sunday, June 27, 2010 7:26 AM
  • FYI A list of testing frameworks can be found here: http://c2.com/cgi/wiki?TestingFramework

     

    JavaScript:


    @_Simon_Jackson http://www.simonjackson.info/ MBCS MCBMSS MCBMSP MCSD MCDBA MCAD MCSA
    Sunday, June 27, 2010 7:36 AM