Пример #1
0
        public void RemoveAllUsers()
        {
            KeyChain kc = CTX.keyChain;

            CTX.driver.Url = kc.UrlBimTrack;

            BTLogin login = new BTLogin();

            login.LogIn(kc.LoginUsername, kc.LoginPassword);

            BTHubsTracks btHubsTracks = new BTHubsTracks();
            ProjectList  prjList      = btHubsTracks.OpenHubByName(kc.HubName);

            prjList.SelectProject(kc.DefaultProject);

            MainProject mainProject = new MainProject();

            SideBarMenu sideBarMenu = mainProject.GetSidebarMenu();

            sideBarMenu.ClickMenuItem("Hub Settings");
            HubSettings hubSettings = new HubSettings();

            UserManagementForm userForm = new UserManagementForm(hubSettings.GetRoot());

            userForm.RemoveAllUsers();

            CTX.driver.Close();
        }
Пример #2
0
        public void RemoveAllUsers()
        {
//            CTX.driver.Url = "http://bimtrackapp.co";
            CTX.driver.Url = "https://qa.bimtrack.co/";

            BTLogin login = new BTLogin();

            login.LogIn("*****@*****.**", "Z3nt3l1499!");

            BTHubsTracks btHubsTracks = new BTHubsTracks();
            ProjectList  prjList      = btHubsTracks.OpenHubByName("ZenyTest");

            prjList.SelectProject("ZENPROJECT001");

            MainProject mainProject = new MainProject();

            SideBarMenu sideBarMenu = mainProject.GetSidebarMenu();

            sideBarMenu.ClickMenuItem("Hub Settings");
            HubSettings hubSettings = new HubSettings();

            UserManagementForm userForm = new UserManagementForm(hubSettings.GetRoot());

            userForm.RemoveAllUsers();

            CTX.driver.Close();
        }