Exemple #1
0
 public InnerPlayerBase(string pMethodSignature, string pRequestIdentifierKey, string pRequestDisplayInfo)
 {
     methodSignature      = pMethodSignature;
     requestIdentifierKey = pRequestIdentifierKey;
     requestDisplayInfo   = pRequestDisplayInfo;
     api = new TestFlaskApi();
 }
Exemple #2
0
        private void CreateAutoStep(HttpRequest request)
        {
            Step autoStep = new Step();

            autoStep.StepName        = $"Auto Step {DateTime.Now.ToString("yyyyMMddHHmmssfff")}";
            autoStep.StepDescription = "Auto Step Description";
            autoStep.ProjectKey      = request.Headers[ContextKeys.ProjectKey];
            autoStep.ScenarioNo      = long.Parse(request.Headers[ContextKeys.ScenarioNo]);

            var api    = new TestFlaskApi();
            var dbStep = api.InsertStep(autoStep);

            HttpContext.Current.Items.Add(ContextKeys.StepNo, dbStep.StepNo);
        }
Exemple #3
0
 public TestFlaskAssistantController()
 {
     config  = TestFlaskAssistantConfig.Instance;
     context = TestFlaskAssistantContext.Current;
     api     = new TestFlaskApi();
 }