Beispiel #1
0
        public void RestartAgentNotRunningTest()
        {
            //Arrange
            ActAgentManipulation actAgentManipulation = new ActAgentManipulation();

            actAgentManipulation.GetOrCreateInputParam(ActAgentManipulation.Fields.AgentManipulationActionType, "RestartAgent");
            actAgentManipulation.Active = true;
            AddApplicationAgent();
            mGR.SetCurrentActivityAgent();

            //Act
            mGR.RunAction(actAgentManipulation);

            //Assert
            Assert.AreEqual(eRunStatus.Passed, actAgentManipulation.Status, "Action Status");
            Assert.IsTrue(actAgentManipulation.ExInfo.Contains("Agent is not running"));
        }
Beispiel #2
0
        public void RestartAgentNullTest()
        {
            //Arrange
            ActAgentManipulation actAgentManipulation = new ActAgentManipulation();

            actAgentManipulation.GetOrCreateInputParam(ActAgentManipulation.Fields.AgentManipulationActionType, "RestartAgent");
            actAgentManipulation.Active = true;
            Activity activity = new Activity();

            mBF.Activities.Add(activity);
            mBF.CurrentActivity = activity;

            //Act
            mGR.RunAction(actAgentManipulation);

            //Assert
            Assert.AreEqual(eRunStatus.Failed, actAgentManipulation.Status, "Action Status");
        }
Beispiel #3
0
 public ActAgentManipulationEditPage(ActAgentManipulation act)
 {
     InitializeComponent();
     mAct = act;
     AgentManipulationComboBox.Init(mAct.GetOrCreateInputParam(ActAgentManipulation.Fields.AgentManipulationActionType), typeof(ActAgentManipulation.eAgenTManipulationActionType));
 }