コード例 #1
0
        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();
            }
        }