public void StressTest01()
        {
            using (var rp = RpProxy.CreateValidPortal())
            {
                bool result = rp.Publisher.Init();
                result &= result && rp.Publisher.StartLaunch(RpProxy.GetLaunchName(nameof(StressTest01)), Mode.Debug, "");

                var testName = "PlanOne:ScriptRed:TestCaseXXX:ReqId01";
                result &= result && rp.Publisher.StartTest(testName, "");

                for (int i = 0; i < 100 && result; i++)
                {
                    result &= rp.Publisher.AddLogItem(testName, $"Foo {i}", LogLevel.Info);
                }

                result &= result && rp.Publisher.FinishTest(testName, Status.Passed, true);                        // finish req ID
                result &= result && rp.Publisher.FinishTest("PlanOne:ScriptRed:TestCaseXXX", Status.Passed, true); // finish test case
                result &= result && rp.Publisher.FinishTest("PlanOne:ScriptRed", Status.Passed, true);             // finish script
                result &= result && rp.Publisher.FinishTest("PlanOne", Status.Passed, true);                       // finish plan

                if (!result)
                {
                    rp.FailWithError();
                }
            }
        }
        public void UseCase03()    // two req IDs in same test case used in parallel -> failed
        {
            using (var rp = RpProxy.CreateValidPortal())
            {
                bool result = rp.Publisher.Init();
                result &= result && rp.Publisher.StartLaunch(RpProxy.GetLaunchName(nameof(UseCase03)), Mode.Debug, "");

                var testName = "PlanOne:ScriptRed:TestCaseXXX:ReqId01";
                result &= result && rp.Publisher.StartTest(testName, "");
                result &= result && rp.Publisher.AddLogItem(testName, "foo", LogLevel.Info);

                var testName2 = "PlanOne:ScriptRed:TestCaseXXX:ReqId02";
                result &= result && rp.Publisher.StartTest(testName2, "");

                result &= result && rp.Publisher.AddLogItem(testName2, "bar", LogLevel.Info);

                result &= result && rp.Publisher.FinishTest(testName, Status.Passed, true);                        // finish req ID
                result &= result && rp.Publisher.FinishTest(testName2, Status.Passed, true);                       // finish req ID

                result &= result && rp.Publisher.FinishTest("PlanOne:ScriptRed:TestCaseXXX", Status.Passed, true); // finish test case
                result &= result && rp.Publisher.FinishTest("PlanOne:ScriptRed", Status.Passed, true);             // finish script
                result &= result && rp.Publisher.FinishTest("PlanOne", Status.Passed, true);                       // finish plan

                if (!result)
                {
                    rp.FailWithError();
                }
            }
        }
            public void EnsureThatReturnTrueWithValidParameters()
            {
                using (var proxy = RpProxy.CreateValidPortal())
                {
                    bool res = proxy.Publisher.StartLaunch(_launchName, Mode.Debug, "tag1;tag2");

                    Assert.IsTrue(res);
                }
            }
            public void ItShouldReportSuccessWithValidParameters()
            {
                using (var proxy = RpProxy.CreateValidPortal())
                {
                    proxy.Publisher.StartLaunch(_launchName, Mode.Debug, "tag1;tag2");

                    string res = proxy.Publisher.GetLastError();

                    Assert.That(res, Is.EqualTo("StartLaunch: success"));
                }
            }
 public void Setup()
 {
     _rpProxy = RpProxy.CreateValidPortal();
     _rpProxy.Publisher.StartLaunch(RpProxy.GetLaunchName(nameof(AddLogItem)), Mode.Debug, "");
 }
 public void Setup()
 {
     _rpProxy = RpProxy.CreateValidPortal();
     _rpProxy.Publisher.StartLaunch(RpProxy.GetLaunchName(nameof(FinishLaunch)), Mode.Debug, "FinshLaunch");
 }
 public void Setup()
 {
     _rpProxy = RpProxy.CreateValidPortal();
     _rpProxy.Publisher.StartLaunch(RpProxy.GetLaunchName(nameof(StartTest)), Mode.Debug, "StartTest;tag1;tag2");
 }