public void TestOpenActiveLead() { try { General.Login(_xrmUri, _username, _password, this.GetType().Name); Lead.Navigate(); Lead.OpenRecord(); } catch (Exception ex) { General.LogError(ex.Message, this.GetType().Name); } finally { General.Close(); } }
public void TestCreateNewLead() { try { General.Login(_xrmUri, _username, _password, this.GetType().Name); Lead.Navigate(); string displayName = Lead.Create(); if (Lead.Search(displayName)) { Lead.Delete(); } } catch (Exception ex) { General.LogError(ex.Message, this.GetType().Name); } finally { General.Close(); } }