Finite-State Machines for Web Testing

Finite-State Machines for Web Testing

Each web-based application or function comprises of different elements and phases visible to the web users.

Consequently, state transition based finite-state machines models are proper for this type of applications.



There are some basic components of finite-state machines:

  • Every web page corresponds to a slate in finite-state machines. Any page can be the initial state and any page can be the final state.
  • The input and output associated with navigations are rather simple and straight forward: the input is the clicking of the embedded link demonstrated as highlighted content; and the corresponding output is the loading of the requested page or content with accompanying messages indicating the HTML status, error or other messages.
  • State transitions correspond to web navigations following hypertext links embedded in HTML documents and other web contents. One special case is that a user may choose to follow a previous saved link or to directly type a URL.

Link checking can be considered as part of finite-state machines based testing for transition coverage, but not based on formal models. The general finite-state machines can guide the general testing of the web navigations.

Actually, web robots used by various Internet search engines or index services generally “crawl” the web by systematically following the embedded hypertext links to create indexes or databases of the general web contents.

There is one evident obstacle to web testing using such finite-state machines: the quantity of web pages for even a moderate-sized web site can be thousands or much more. Therefore, there would be great numbers of states in finite-state machines, which makes any detailed testing beyond simple indexing unrealizable, even with some automated support.

Even such simple indexing by the most powerful robot for major web search engines only covers a small percentage of the total web. But usage and problem dispensation among various software elements is highly rugged, which is also shown to be true among various web contents.

Therefore, some type of selective testing is needed to focus on highly-used and problematic areas to assure maximal web site reliability improvement.

Knowledge Center
Knowledge Center

*- required fields