public void TestBPFLeadToOpportunity() { Random rnd = new Random(); try { General.Login(_xrmUri, _username, _password, this.GetType().Name); Lead.Navigate(); string leadName = Lead.CreateBPF(); Lead.ClickQualify(); Opportunity.Navigate(); if (Opportunity.Search(leadName)) { Logs.LogHTML("Created Lead and converted to opportunity Successfully", Logs.HTMLSection.Details, Logs.TestStatus.Pass); Opportunity.Delete(); } } catch (Exception ex) { General.LogError(ex.Message, this.GetType().Name); } finally { General.Close(); } }
public void TestCreateNewOpportunity() { try { General.Login(_xrmUri, _username, _password, this.GetType().Name); Opportunity.Navigate(); string createdName = Opportunity.Create(); if (Opportunity.Search(createdName)) { Logs.LogHTML("Created Opportunity Successfully", Logs.HTMLSection.Details, Logs.TestStatus.Pass); Opportunity.Delete(); } } catch (Exception ex) { General.LogError(ex.Message, this.GetType().Name); } finally { General.Close(); } }