# Author: Morgan Price # Date: 21-Feb-2013 Feature: Execute Query / Query Set In order to answer a question across the network The Network Question Manager should be able to Execute a query or query set on the network and receive answers from the engaged End Point. Scenario: Execute a Query Given at least one validated query has been created And it is stored on the Hub And the Network Question Manager has access to the Hub And there is at least one End Point paired with the Hub When a Network Question Manager Activates the query Then the Hub sends the query to the registered End Points in the network And the End Points process the query And the End Points return the response And the Hub receives and stores the responses from each end point And the Hub reports the aggregate responses And the transactions are logged in the end points and hub Scenario: Execute a Query Set Given more than one related, validated query has been created And it is stored on the Hub as a Query Set And the Network Question Manager has access to the Hub And there is at least one End Point paired with the Hub When a Network Question Manager Activates the query set Then the Hub sends the query set to the registered End Points in the network And the End Points process the query set as a single batch And the End Points return the responses as a batch And the Hub receives and stores the responses from each end point And the Hub reports the aggregate responses And the transactions are logged in the end points and hub