public void CheckISBN()
        {
            SolutionBrowser._browser.Sync();

            bool success = true;

            success = CheckFunctions.CompareSearchResult(ISBN, pp.ISBN);

            if (!success)
            {
                Assert.Fail("This product's ISBN doesn't correspond to the one searched.");
            }
        }
        public void CheckRBCode()
        {
            SolutionBrowser._browser.Sync();

            bool success = true;

            success = CheckFunctions.CompareSearchResult(RBCODE, pp.RBCode);

            if (!success)
            {
                Assert.Fail("This product's Renaud-Bray code doesn't correspond to the one searched.");
            }
        }
        public void CheckSubject()
        {
            SolutionBrowser._browser.Sync();

            bool success = true;

            success = CheckFunctions.CompareSearchResult(SUBJECT, pp.Subject);

            if (!success)
            {
                Assert.Fail("This product's subject doesn't correspond to the one searched.");
            }
        }
        public void CheckCollection()
        {
            SolutionBrowser._browser.Sync();

            bool success = true;

            success = CheckFunctions.CompareSearchResult(COLLECTION, pp.Collection);

            if (!success)
            {
                Assert.Fail("The collection from this product doesn't correspond to the one searched.");
            }
        }
        public void CheckEditor()
        {
            SolutionBrowser._browser.Sync();

            bool success = true;

            success = CheckFunctions.CompareSearchResult(EDITOR, pp.Editor);

            if (!success)
            {
                Assert.Fail("The editor from this product doesn't correspond to the one from the search.");
            }
        }
        public void CheckTitleSearchResult()
        {
            SolutionBrowser._browser.Sync();

            bool success = true;

            success = CheckFunctions.CompareSearchResult(TITLE, pp.Title);

            if (!success)
            {
                Assert.Fail("The author specified in the search is not the same as the one for the selected product.");
            }
        }
Example #7
0
        public void CheckSearchResult()
        {
            bool successTitle  = true;
            bool successAuthor = true;

            IWebElement firstProductTitle  = null;
            IWebElement firstProductAuthor = null;

            SolutionBrowser._browser.Sync();

            result.FirstProductClick();

            firstProductTitle  = pp.Title;
            firstProductAuthor = pp.AuthorLink;

            successTitle  = CheckFunctions.CompareSearchResult(SEARCH_WORD, firstProductTitle);
            successAuthor = CheckFunctions.CompareSearchResult(SEARCH_WORD, firstProductAuthor);

            if (!successAuthor && !successTitle)
            {
                Assert.Fail("The first product was unrelated to the search.");
            }
        }