Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        public async Task addRealm()
        {
            await LoginHelper.AMloginAsyncSuccess("admin", "123456");

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

            Assert.IsTrue(AMRealmHelper.checkRealmExist(realmName), "Realm " + realmName + " not Exist");
            Assert.IsTrue(AMRealmHelper.checkRealmIsActive(realmName), "Realm " + realmName + " is not active");
            await LoginHelper.AMlogOutAsync();
        }