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(); }
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(); }