Test using LTAF without altering the database

Last post 08-31-2009 10:18 PM by farmas. 1 replies.

Sort Posts:

  • Test using LTAF without altering the database

    08-30-2009, 9:27 AM

    When I set a test using LTAF and order a click on the submit button, it is as if I had really altered the database. How can we test the application without updating the database as with unit tests (although I realize LTAF and unit tests are really not the same thing).

    Thank you!

  • Re: Test using LTAF without altering the database

    08-31-2009, 10:18 PM
    Answer
    • Participant
      1,114 point Participant
    • farmas
    • Member since 08-05-2002, 8:19 AM
    • Redmond, WA
    • Posts 249
    • AspNetTeam

    LTAF is a functional automation framework, but if I understand you right, you can accomplish this in several ways:

    1. Prep the database before test execution. Usually done at testcase constructor, you can populate database with test data.

    2. If you use Inversion of Control or a ServiceLocator patterns to create a data repository, you can set up your IoC container or ServiceLocator during your test constructor and then run your app. If you are using LTAF with tests in the same website this is very simple because you can directly code against your application setup.

    Hope it helps,

    - Federico

Page 1 of 1 (2 items)