Пример #1
0
        public async Task deleteRealm()
        {
            await LoginHelper.AMloginAsyncSuccess("admin", "123456");

            string realmName = "realmtest" + rnd.Next(100000);
            //await AMRealmHelper.addRealm(realmName);
            await AMRealmHelper.deleteRealm("realmtest37012");

            Assert.IsFalse(AMRealmHelper.checkRealmExist(realmName), "Realm " + realmName + " is not deleted");
            await LoginHelper.AMlogOutAsync();
        }
Пример #2
0
        public async Task updateActiveRealm()
        {
            await LoginHelper.AMloginAsyncSuccess("admin", "123456");

            string realmName = "realmtest" + rnd.Next(100000);
            await AMRealmHelper.addRealm(realmName);

            Assert.IsTrue(AMRealmHelper.checkRealmExist(realmName), "Realm " + realmName + " not Exist");
            await AMRealmHelper.updateRealm(realmName);

            Assert.IsFalse(AMRealmHelper.checkRealmIsActive(realmName), "Realm " + realmName + " is active");
            await AMRealmHelper.deleteRealm(realmName);
        }
Пример #3
0
        public async Task addRealmSameName()
        {
            await LoginHelper.AMloginAsyncSuccess("admin", "123456");

            string realmName = "realmtest" + rnd.Next(100000);
            await AMRealmHelper.addRealm(realmName);

            await AMRealmHelper.addRealmSameName(realmName);

            await AMRealmHelper.deleteRealm(realmName);

            await LoginHelper.AMlogOutAsync();
        }