1 / 8

Testing systems with deferred reactions

Testing systems with deferred reactions. CTesK Training Course. A scenario of using Event Monitor. Listener1. Listener2. EventMonitor. ControlCenter. register( "host1:2024" ). register( "host2:2381" ). event( "S12 failed" ). notify( "S12 failed" ). notify( "S12 failed" ).

starr
Download Presentation

Testing systems with deferred reactions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Testing systems with deferred reactions CTesK Training Course

  2. A scenario of using Event Monitor Listener1 Listener2 EventMonitor ControlCenter register( "host1:2024" ) register( "host2:2381" ) event( "S12 failed" ) notify( "S12 failed" ) notify( "S12 failed" ) unregister( "host1:2024" ) event("S12 restarted") notify( "S12 restarted" )

  3. Internal interface of Event Monitor void event( const char* event_description );

  4. notify event External interface of Event Monitor register, unregister "R|host:port" - registration request "U|host:port" - unregistration request "N|event_desc" - event notification

  5. Support library of Event Monitor void register_listener( const char* addr ); void unregister_listener( const char* addr );

  6. dfsm Scenario Oracle Mediator SUT event_scen( y1, y2 ) event_spec( y1 ) event_media( y1 ) even( y1 ) Wait “N|y1” “N|y1” { (x1,y1), (x2,y1) } {(x1,y1), (x2,y1)}, verdict event_spec( y2 ) event_media( y2 ) event( y2 ) Wait “N|y2” “N|y2” { (x1,y2), (x2,y2) } {(x1,y2), (x2,y2)}, verdict verdict Initial state:x1 andx2 are registered.

  7. dfsm Scenario Oracle Mediator SUT unreg_event_scen( x1, y ) unreg_spec( x1 ) unreg_media( x1 ) “U|x1” void verdict event_spec( y ) event_media( y ) event( y ) Wait “N|y” { notify(x2,y) } { notify(x2,y) }, verdict verdict Initial state:x1 andx2 are registered.

  8. dfsm Scenario Oracle Mediator Catcher SUT unreg_event_scen( x1, y ) unreg_spec( x1 ) unreg_media( x1 ) “U|x1” void verdict event_spec( y ) event_media( y ) event( y ) void “N|y” to x2 verdict verdict Wait getReactions() { notify(x2,y) } Serialize

More Related