Results 1 to 7 of 7

Thread: State transition testing

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Answers
    1

    Question State transition testing

    can u please tell me aboubt State transition testing?

    Thanx,
    Aritra


  2. #2
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: State transition testing

    hi aritra,

    The main focus of state transition testing is to test the transition from one state to another. i mean open state to closed state.

    Thanks
    Deepasree


  3. #3
    Junior Member
    Join Date
    Nov 2008
    Answers
    3

    Re: State transition testing

    State transition is a blackbok testing techinique. It is used to test the objects state and behaviour ie state transition testing can be defined as object = state + behavior * behavior is the sequence of messages (or events) that an object accepts * state is a condition in which a system is waiting for one or multiple events * transition represents change from one state to another caused by an event * event is input that may cause a transition * action is operation initiated because of a state change (occur on ransitions) eg : an atm machine * after entering the valid pin the user can move to any transaction like balance enquiry, withdrawal, pin change etc how do we test the transition. By using state transition testing with luv (v) geeklover


  4. #4
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    Re: State transition testing

    Agree with Geeklover.

    A good test case to test the state transition logic should excercise all the activities that change and don't change the state.

    Lack of WILL POWER has caused more failure than
    lack of INTELLIGENCE or ABILITY.

    -sutnarcha-

  5. #5
    Contributing Member
    Join Date
    Apr 2008
    Answers
    66

    Re: State transition testing

    State Transition testing is the way to evaluate the state through which a system can transit in real world. Let me explain this by simple example of the Switch and light, there could be only two stage of a switch i.e ON or OFF.
    1- Switch is On ---> Light is On
    2- Switch is Off ---> Light is Off

    So stage of transition will be off-->on-->off-->on , you can find defect any stage, like wise you can evaluate the result of different stages of the system.


  6. #6
    Contributing Member
    Join Date
    Sep 2010
    Answers
    32

    Re: State transition testing

    State transition testing is used where some aspect of the system can be described in what is called a “finite state machine”. This simply means that the system can be in a (finite) number of different states, and the transitions from one state to another are determined by the rules of the “machine”. This is the model on which the system and the tests are based. Any system where you get a different output for the same input, depending on what has happened before, is a finite state system.

    For example, if you request to withdraw 100 from a bank ATM, you may be given cash. Later you may make exactly the same request but be refused the money (because your balance is insufficient). This later refusal is because the state of your bank account had changed from having sufficient funds to cover the withdrawal to having insufficient funds. The transaction that caused your account to change its state was probably the earlier withdrawal. Another example is a word processor. If a document is open, you are able to Close it. If no document is open, then “Close” is not available. After you choose “Close” once, you cannot choose it again for the same document unless you open that document. A document thus has two states: open and closed.

    A state transition model has four basic parts:

    ■The states that the software may occupy (open/closed or funded/insufficient funds);
    ■The transitions from one state to another (not all transitions are allowed);
    ■The events that cause a transition (withdrawing money, closing a file);
    ■The actions that result from a transition (an error message, or being given your cash).


  7. #7
    Junior Member
    Join Date
    Feb 2011
    Answers
    1

    Re: State transition testing

    To ease creation of state transition tests I created a tool called STTC (State Transition Test Creator). I have posted current status on sourceforge. The tool allows you to enter the definition of a statemachine, to derive test cases from this definition and to export the results to clipboard or a HTML-page. See attached file for an example.
    Tool is still under construction, check roadmap to see what is already planned to add. Feel free to suggest more functionality!

    Attached Images Attached Images State transition testing-examplesttc-jpg 

  8.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact