1 Reply Latest reply: Oct 22, 2010 5:43 AM by Michael Labriola RSS

    How to Verify using Unit Testing

    Praveen Kumar Indupuri Community Member

      Hi,

       

      How do we unit test using ASMocking   whether an Event is called and next screen is displayed

       

      Tools i am using

      ASMOCK

      Flexunit 4

        • 1. Re: How to Verify using Unit Testing
          Michael Labriola Community Member

          Praveen,

           

          A few issues. First, this is a FlexUnit forum, so I do not know how to help you with ASMock issues. You can certainly post here but I don't know that you will get a response. You will probably need to reach out in an ASMock forum or site for help.

           

          Second, I am not sure that FlexUnit is the right tool for you. This is a unit testing framework, which means testing an isolated unit... generally an isolated class at a time. If you want to see that when an event is dispatched a new screen is displayed, you are looking at dozens to hundreds of classes depending if your project is ActionScript or Flex-based.

           

          If that is the type of testing you are trying to just be sure you really want to try to do this in a unit testing framework. It is going to be much more difficult and probably not suit your needs as well. If you need to test at this high of a level, I would consider more of a functional testing tool such as FlexMonkey or RIATest

           

          Mike