testing in agent based systems
TRANSCRIPT
-
8/16/2019 Testing in Agent Based Systems
1/34
Testing in Agent Based SystemsAHS
M. JUNA
TAHIR M
QAI
-
8/16/2019 Testing in Agent Based Systems
2/34
Outine
!"at is Agent#
Testing in Muti Agent System
Testing F$ame%&$'
Testing Te("ni)ues *&$ Agent BaseSystem
+&n(usi&n
-
8/16/2019 Testing in Agent Based Systems
3/34
!"at is Agent#
“One that acts or has the power or authority to act or represent ano
S&*t%a$e Agent,A software agent is a computer program that works
toward goals in a dynamic context on behalf of
another entity (human or computational), perhaps fora long period of time, with discontinuous direct
supervision or control, and exhibits a significant
flexibility and even creativity degree in how it tries to
transform goals into action tasks
-
8/16/2019 Testing in Agent Based Systems
4/34
he following are the types of Agents!
Inteigent Agents
+&a-&$atie Agent
Inte$*a(e Agent
M&-ie Agent
In*&$mati&n/Inte$net Agent
Rea(tie S&*t%a$e Agent
Hete$&gene&us Agent System
Ty0es O* Agents
-
8/16/2019 Testing in Agent Based Systems
5/34
Intelligent Agent
"ensor Agent Action
#nput Output
Eni$&nment
-
8/16/2019 Testing in Agent Based Systems
6/34
#ntelligent agents continuously perform three functions!
• o !ynamic con!itions in theen"ironment #erce$tion
• to a%ect con!itions in theen"ironment
Action• to inter$ret $erce$tions& sol"e
$ro'lems& !raw inerences& an!!etermine actions(
)easoning
-
8/16/2019 Testing in Agent Based Systems
7/34
+"a$a(te$isti(s &* Inteigent Agent
Autonomy Goal OrientedCommunicative
Learning
Pro Activeeactivity
!ocial Ability "obilit
IntelligentAgent
-
8/16/2019 Testing in Agent Based Systems
8/34
Muti Agent System
$ore than one agent is composed together and
interaction is exhibited among themselves to achieve
the targeted goal is termed as a $ulti%Agent "ystem
($A")&
-
8/16/2019 Testing in Agent Based Systems
9/34
E1am0es
Aut&n&m&us Ai$0anes
'urrently large airplanes have most of the
technologies for autonomous flight like
control of individual airplanes
coordination of activities with other
airplanes relies on central authorities &
-
8/16/2019 Testing in Agent Based Systems
10/34
E1am0eInte$net Agents
tons of chat bots
sales and marketing agents
customer service
"earching the #nternet for the answer to a specific uery can be a
long and tedious process& "o, why not allow a computer program
an agent do searches for us* he agent would typically be given a uery that would reuire
synthesi+ing pieces of information from various different #nternet
information sources&
ailure would occur when a particular resource was unavailable&
-
8/16/2019 Testing in Agent Based Systems
11/34
Testing In Muti Agent Systems
est -evels .nit testing
Agent testing
#ntegration or /roup testing
"ystem or "ociety esting Acceptance testing
-
8/16/2019 Testing in Agent Based Systems
12/34
!"y testing MAS is +"aenging#
Dist$i-uted/asyn("$&n&us Aut&n&m&us Message 0assing
Eni$&nment Fa(t&$ Ba('2-&1 MAS
-
8/16/2019 Testing in Agent Based Systems
13/34
!"y t"e$e is a need &* s0e(iai3ed
Testing#
"urvey states that the agent based software are currently been tested
by using Ob0ect%Oriented (OO) testing techniues, upon mapping of
Agent%Oriented (AO) abstractions into OO constructs& 1owever agent
properties such as Autonomy, 2roactivity, and 3eactivity etc&, cannot
be mapped into OO constructs&
-
8/16/2019 Testing in Agent Based Systems
14/34
Aut&mated +&ntinu&us Testing
Te("ni)ue *&$ MAS system
4hat is Automated 'ontinuous esting* 4hy Automated 'ontinuous esting*
'omponents of Automated 'ontinuous esting echniue!
Autonomous ester Agent
$onitoring Agent
Automated est 'ase generation echniue for Autonomous
est Agent!
5) 3andom esting 6)7volutionary $utation esting
-
8/16/2019 Testing in Agent Based Systems
15/34
e+AT F$ame%&$'
e'A is agent testing framework that implements automatedcontinuous testing of $A"& he framework facilitates test
suites derivation from goals analysis following the goal%
oriented testing methodology, semi%automatically generating
test suites skeletons from goal analysis diagrams
-
8/16/2019 Testing in Agent Based Systems
16/34
+&m0&nents &* e+AT F$ame%&$'
est "uite 7ditor
#t allows human testers to derive test suites from goal analysis
diagrams
Autonomous ester Agent
#t is capable to automatically generate new test cases and toexecute them on a $A"
$onitoring Agents
#t monitor communication among agents&
-
8/16/2019 Testing in Agent Based Systems
17/34
e+AT F$ame%&$' *&$ Aut&mated
+&ntinu&us Testing
-
8/16/2019 Testing in Agent Based Systems
18/34
Testing Te("ni)ues In Agent Based
Systems
-
8/16/2019 Testing in Agent Based Systems
19/34
R&e O$iented A00$&a("
A role can be defined as a entity that exposes
to the agent that plays it a set of actions
3ole is an important attribute of an agent &
4ell defined interface
-
8/16/2019 Testing in Agent Based Systems
20/34
R&e O$iented M&de
-
8/16/2019 Testing in Agent Based Systems
21/34
R&e O$iented Testing
8 An 9 8 /i ( 8 30 ( 8 3ek ) ) where i 9 0 9 k 9 x 9 5
"72 5! "elect the Agent to be tested&
"72 6! #dentify /oals (/i), 3oles (30) and their corresponding
3esponsibilities (3ek)
"72 :! ;esign 3ole $odel ;iagram (Ax (/i 30 3ek)
"72
"72 =! ;efine the interacting agents and situations&
"72 >! #dentify environmental factors pre%conditioning input trigger 3ek
"72 ?! #dentify fulfillment criteria that satisfies 3esponsibility
"72 @! 3un test cases
-
8/16/2019 Testing in Agent Based Systems
22/34
R&e O$iented Unit Testing
his techniue focuses primarily on the smallest building blocks&
#ndividual goals
A role can be represented as
/oal
3esponsibilities 2rotocol
2ermissions
-
8/16/2019 Testing in Agent Based Systems
23/34
ROUT E1am0e
-
8/16/2019 Testing in Agent Based Systems
24/34
R&ut E1am0e
-
8/16/2019 Testing in Agent Based Systems
25/34
R&e S("ema
)ole schema $ro"i!es a well/!e0ne! interace(
-
8/16/2019 Testing in Agent Based Systems
26/34
Adantage 4 Disadantage
3ole based approach helps the multi agent system
developers in testing the individual unit of the agent based
system&
esting whether the agent performs its role properly is achallenging task&
-
8/16/2019 Testing in Agent Based Systems
27/34
Unit Testing In MAS
Unit testing is a s&*t%a$e development process in
which the smallest testable parts of an application,
called units, are individually and independently
scrutini+ed for proper operation& Unit testing is often
automated but it can also be done manually&
-
8/16/2019 Testing in Agent Based Systems
28/34
Unit testing using M&(' Agents
#n $A" $ock Agent is a regular agent tha
communicates with 0ust one agent! the Agen
.nder est (A.)&
he $ock Agents plan is euivalent to a tes
script&
-
8/16/2019 Testing in Agent Based Systems
29/34
Agent unit test approach is composed of five participants
est suit est 'aseAgent
under test$ockAgent
Agent
$onitor
-
8/16/2019 Testing in Agent Based Systems
30/34
-
8/16/2019 Testing in Agent Based Systems
31/34
Unit Testing Using M&(' Agents 5$&s 4
+&ns
#n $A"s .nit esting aims to remove faults along the application development& .nit testing is independent of any development life cycle used&
.nit testing in $A" verifies whether each agent in isolation respects its
specifications under normal and abnormal conditions&
#t is a role based approach, we can find out the individual behavior of agents&
his approach doesnt create complete test cases, it needs to be combined with
other strategies to make a thorough set of test cases&
his approach only tests individual agent, group testing of agents or system of
agents as a whole is not considered&
-
8/16/2019 Testing in Agent Based Systems
32/34
+&n(usi&n
$ost of the existing research work on testing software agen
and $A" focuses mainly on agent and integration leve
Basic issues of testing software agents like message passing
distributedCasynchronous have been consideredD testin
frameworks have been proposed to facilitate testing process
-
8/16/2019 Testing in Agent Based Systems
33/34
Re*e$en(es & Bergenti, $& /lei+es, and & Eambonelli, “$ethodologies and "oftware 7ngineering for Agent
"ystems”, he Agent%Oriented "oftware 7ngineering 1andbook, "pringer, Fol& 55, 6GG
-
8/16/2019 Testing in Agent Based Systems
34/34
PAgent Oriented "oftware esting L 3ole Oriented approach (IJACSA) International
Journal of Advanced Computer Science and Applications, Vol. 3, No.12, 212 !"
N.Siva#umar and $.Vive#anandan "ivakumar, &, and K& Fivekanandan& Q7xploring the eed for "peciali+ed esting
echniue for an Agent%Based "oftware&Q %&'*+S 6GG6&? (6GG6)&
http!CCwww&apple&comCiphoneCfeaturesCsiri&html
http!CCwww&inf&ed&ac&ukCteachingCcoursesCabsCslidesCabsG5%introduction%6x6&pdf
$ulti%Agent "ystem esting! A "urvey
http://www.apple.com/iphone/features/siri.htmlhttp://www.inf.ed.ac.uk/teaching/courses/abs/slides/abs01-introduction-2x2.pdfhttp://www.inf.ed.ac.uk/teaching/courses/abs/slides/abs01-introduction-2x2.pdfhttp://www.apple.com/iphone/features/siri.html