Skip to main content
Participant
October 22, 2010
Answered

How to Verify using Unit Testing

  • October 22, 2010
  • 1 reply
  • 481 views

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

This topic has been closed for replies.
Correct answer mlabriola

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

1 reply

mlabriolaCorrect answer
Participating Frequently
October 22, 2010

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