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();
            }
        }
Example #2
0
 public void TestUpdateLead()
 {
     try
     {
         General.Login(_xrmUri, _username, _password, this.GetType().Name);
         Lead.Navigate();
         Lead.Update();
     }
     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();
     }
 }