public void organizationSetup()
        {
            Console.WriteLine("_02OrganizationSetup");

            String orgname = "ORG"+AlwaysRandom();

            string username = "";
            string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSetting.xml");
            ArtzyLoginHelper loginHelper = new ArtzyLoginHelper(GetWebDriver());
            registerHelper = new RegisterHelper(GetWebDriver());

            //username = oXMLData.getData("settings/credentials", "Artzyusername");
            username = loginHelper.GetFromFile("Registration");

            password = oXMLData.getData("settings/credentials", "Artzypassword");

            //Verify Page title
            verifyTitle("Artzy Login");

            //Login with email address
            Login(username, password[0]);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Page title
            verifyTitle("Organization Info");

            //Enter organization name
            registerHelper.type("OrgName", orgname);

            //Enter URL:
            registerHelper.type("URL", orgname);

            //Enter Email:
            registerHelper.type("OrgEmail", username);

            //Click on 'Save' button.
            registerHelper.ClickElement("SaveOrg");

            //wait for text
            registerHelper.WaitForTextInPage("Organization info saved successfully", 30);

            //Verify saved organozation name.
            registerHelper.verifyFieldText("OrgName", orgname);

            //Verify saved URL
            registerHelper.verifyFieldText("URL", orgname);

            //Logout from the application
            Logout();

            //Capture screenshot fot the screen
            registerHelper.TakeScreenshot("OrganizationSetup - Artzy");
        }
Ejemplo n.º 2
0
        public void registration()
        {
            Console.WriteLine("_01Registration");

            String email = "aman"+AlwaysRandom()+"@yopmail.com";

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSetting.xml");

            registerHelper = new RegisterHelper(GetWebDriver());

            //Wait for text
            registerHelper.WaitForTextVisible("Use your email to sign in.", 30);

            //Click on Create one-now link
            registerHelper.ClickElement("AccountCreate");

            //Wait for text
            registerHelper.WaitForTextVisible("Already have an account", 20);

            //Verify title
            verifyTitle("Artzy.co - Account Creation");

            //Fill first name
            registerHelper.type("FirstName", "Aman");

            //Fill last name
            registerHelper.type("LastName", "Automated");

            //Enter the email
            registerHelper.type("UserEmail", email);

            //Enter the password
            registerHelper.type("Password", "1qaz1QAZ");

            //Enter the confirm password
            registerHelper.type("ConfirmPassword", "1qaz1QAZ");

            //Check the check box
            registerHelper.ClickElement("CheckClick");

            //Click on Create new account button
            registerHelper.ClickElement("CreateNew");

               //Verify page title
            verifyTitle("Organization Info");

            registerHelper.SetInFile("Registration", email);

            //Capture screenshot fot the screen
            registerHelper.TakeScreenshot("Registration - Artzy");
        }
Ejemplo n.º 3
0
        public void updateOrgInfo()
        {
            Console.WriteLine("_23UpdateOrgInfo");

            String email = "aman" + AlwaysRandom() + "@yopmail.com";
            String orgname = "ORG" + AlwaysRandom();

            string username = "";
            string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSetting.xml");
            ArtzyLoginHelper loginHelper = new ArtzyLoginHelper(GetWebDriver());
            RegisterHelper registerHelper = new RegisterHelper(GetWebDriver());

            //username = oXMLData.getData("settings/credentials", "Artzyusername");
            username = loginHelper.GetFromFile("Registration");

            password = oXMLData.getData("settings/credentials", "Artzypassword");

            //Verify Page title
            verifyTitle("Artzy Login");

            //Login with email address
            Login(username, password[0]);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Page title
            verifyTitle("Index");

            //Scroll to element
            registerHelper.scrollToElement("Settings");

            //Click on Setting dropdown.
            registerHelper.ClickElement("Settings");

            //Scroll to element
            registerHelper.scrollToElement("Orginfo");

            //Click on org infor tab
            registerHelper.ClickElement("Orginfo");

            //Wait for text
            registerHelper.WaitForTextInPage("Email", 20);

            //Update organization name
            registerHelper.type("OrgName", orgname);

            //Update URL:
            registerHelper.type("URL", orgname);

            //Update Email:
            registerHelper.type("OrgEmail", orgname + "@yopmail.com");

            //Click on 'Save' button.
            registerHelper.ClickElement("SaveOrg");

            //wait for text
            registerHelper.WaitForTextInPage("Organization info saved successfully", 30);

            //Verify updated organozation name.
            registerHelper.verifyFieldText("OrgName", orgname);

            //Verify updated URL
            registerHelper.verifyFieldText("URL", orgname);

            //Verify updated email
            registerHelper.verifyFieldText("OrgEmail", orgname + "@yopmail.com");

            //Logout from the application
            Logout();

            //Capture screenshot fot the screen
            registerHelper.TakeScreenshot("UpdateOrgInfo - Artzy");
        }