13.07.2015 Views

Extension of Object-Oriented Software Testing Techniques to Agent ...

Extension of Object-Oriented Software Testing Techniques to Agent ...

Extension of Object-Oriented Software Testing Techniques to Agent ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Test Case 2:<strong>Agent</strong> under testGoal TestedCollaboration agents involved<strong>Testing</strong> techniqueScenarioExpected resultObserved resultTest Case resultBuyer <strong>Agent</strong>Buy tickets with the cheapest sellerSeller agentRandom <strong>Testing</strong><strong>Testing</strong> buyer agent by sending REJECT messagesfor accept proposalsBuyer agent will not consider the seller agent as theseller tickets for the required route.Buyer agent did not consider the seller agent as theseller tickets for the required route.PassedTest Case 3:<strong>Agent</strong> under testGoal TestedCollaboration agents involved<strong>Testing</strong> techniqueScenarioExpected resultObserved resultTest Case resultBuyer <strong>Agent</strong>Buy tickets with the cheapest sellerSeller agentRandom <strong>Testing</strong><strong>Testing</strong> buyer agent by sending messages not known<strong>to</strong> the buyer after receiving a ACCEPT_PROPOSALmessage.Buyer will ignore the message and continue with itsactivity.Buyer ignored the message and continued with itsactivity.Passed4 BEHAVIOR BASED TESTING FOR AGENTS<strong>Agent</strong>s can have any number <strong>of</strong> behaviors like one-shot, cyclic, parallel, sequential, FSMbehaviors. Each behavior is seen as a black box. Apart from this the programmers canwrite their own behaviors. Each behavior can send or receive any number <strong>of</strong> messages.Test cases must be designed in such a way so as <strong>to</strong> test the behaviors <strong>of</strong> the agent bysending messages. In the flight air ticket booking example, the seller agent has two cyclicbehaviors.VOL. 7, NO. 8 JOURNAL OF OBJECT TECHNOLOGY 159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!