public void Setup()
        {
            //launch the browser
            Initialize();


            if (signin)
            {
                SignIn.SigninStep();
            }
            else
            {
                Signup.register();
            }
        }
Beispiel #2
0
        public void InititalizeTest(ScenarioContext scenarioContext, IWebDriver Driver)
        {
            //Create dynamic scenario name
            scenario = featureName.CreateNode <AventStack.ExtentReports.Gherkin.Model.Scenario>(scenarioContext.ScenarioInfo.Title);

            //navigate to URL
            Driver.Navigate().GoToUrl(ConstantHelpers.Url);

            //calling login method
            if (ConstantHelpers.IsLogin == "true")
            {
                SignIn loginobj = new SignIn(Driver);
                loginobj.LoginSteps();
            }
            else
            {
                Signup signUp = new Signup(Driver);
                signUp.register();
            }
        }
        public void Setup(ScenarioContext scenarioContext)
        {
            //launch the browser
            Initialize();


            if (signin)
            {
                SignIn.SigninStep();
            }
            else
            {
                Signup.register();
            }

            if (null != scenarioContext)
            {
                _scenarioContext = scenarioContext;
                _scenario        = feature.CreateNode <Scenario>(scenarioContext.ScenarioInfo.Title, scenarioContext.ScenarioInfo.Description);
            }
        }