@Test public void createStoryForEachBooks() throws UnsupportedDriverException, InterruptedException { List<BuchDO> buecherList = readBooks(); assertTrue(numOfBooks == buecherList.size()); createProductForMissingBooks(); for (BuchDO buch : buecherList) { createStory(buch); } // and check existence in the product logger.info("Checking product: " + product.title); ProductPage productPage = startPage.navigateToProduct(product.title, 0); for (BuchDO buch : buecherList) { productPage.storyIsShown(buch.getTitel()); } }