Ejemplo n.º 1
0
        public void ThenUserShouldRecieveAMail(Table table)
        {
            int    time       = 20000;
            var    Credential = table.CreateInstance <GmailCredential>();
            string Url        = null;

            //increasing the wait time by 20s and repesting the mailcheck until wait time limit (2min)
            while (time < 60001)
            {
                //recieving the confirmation may take some time for that pausing the test
                Thread.Sleep(time);
                gmail mail = new gmail();
                Url = mail.gmail_test(Credential.Email, Credential.Password, false);
                Console.WriteLine(Url);
                if (Url != null)
                {
                    break;
                }
                time = time + 20000;
            }


            //checking weather user got any URL or not
            Assert.IsFalse(Url == null);
        }
Ejemplo n.º 2
0
        public void GivenFetchTheLoginLinkFromGmainUsingFollowingCredentials(Table table)
        {
            var Credential = table.CreateInstance <GmailCredential>();

            //gmail is a seprate class for reading the unread message from the gmail
            gmail mail = new gmail();

            Url = mail.gmail_test(Credential.Email, Credential.Password, true);
            Console.WriteLine(Url);
            Assert.IsFalse(Url == null);
        }
Ejemplo n.º 3
0
 public void GivenLoginToTheGmail()
 {
     gmail mail = new gmail();
     //string url = mail.gmail_test("*****@*****.**", "qwertyanikesh");
     //Console.WriteLine(url);
 }