Design Automation system with states for debugging purpose

17 Sep

It is very important to design your automation system with debugging in mind. For example, you have a an automated suite that runs in sequence, and you needed to make changes in the last test or even add a new test; if you don’t design your system correctly, you will end up running through your entire test in order to debug your test under development.

Thus, the solution is to identify states in your system, which makes each of the test of test suite be dependent on any of these states.

For example, we could have the following states in our system:

  • StartUpState
  • LoggedInState
  • FileOpenState

This way, each test is independent, and you no longer are required to run the entire suite in sequence. This will make debugging and maintenance a breeze in comparison to create a sequential test suite. This concept is used heavily in SILK, with the Base State concept.

The interesting part is how to implement this concept taking advantage of object oriented language such as C#? I will cover this in my next post, stay tuned!

Leave a comment

Posted by on September 17, 2008 in C#, Development, Test Automation, Testing


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: