add a check that all components started by an app are removed when it is deactivated

Change-Id: Ic39b5f21123aa792d436ffcf5fbb8cc610efc535
diff --git a/tools/test/bin/onos-generate-activate-all-scenario b/tools/test/bin/onos-generate-activate-all-scenario
index c12400b..52cf382 100755
--- a/tools/test/bin/onos-generate-activate-all-scenario
+++ b/tools/test/bin/onos-generate-activate-all-scenario
@@ -26,6 +26,8 @@
     <group name="App-Activate-All">
        <step name="App-Activate-All.Minimal-Apps"
                  exec="onos-set-up-minimal-apps ${OCI}"/>
+       <step name="App-Activate-All.Count-Components" 
+             exec="onos-find-component-count ${OC1} starting" requires="^"/>
 '''
 
 SCENARIO_FOOTER = '''
@@ -47,7 +49,7 @@
            <step name="App-Activate-All.App-Deactivate-%(app_id)s"
                  exec="onos ${OCI} app deactivate org.onosproject.%(app_id)s" requires="App-Activate-All.App-Check-%(app_id)s"/>
            <step name="App-Activate-All.Wait-For-Deactivate-%(app_id)s"
-                 exec="onos-check-apps ${OCI} org.onosproject.drivers" requires="App-Activate-All.App-Deactivate-%(app_id)s"/>      
+                 exec="onos-check-component-count ${OCI} ${startingcount}" requires="App-Activate-All.App-Deactivate-%(app_id)s"/>      
            <group name="App-Activate-All.App-Check-After-%(app_id)s" requires="App-Activate-All.Wait-For-Deactivate-%(app_id)s">
               <parallel var="${OC#}">
                  <step name="App-Activate-All.Check-Logs-After-${#}-%(app_id)s" exec="onos-check-logs ${OC#}"/>