Guest User

Untitled

a guest
Nov 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Scenario Outline: Search
  2. Given I Navigate to webpage with <date>
  3.  
  4. Examples:
  5. | Variant | Date |
  6. | Web1 | |
  7. | Web2 | |
  8. | Web3 | |
  9. | Web4 | |
  10. | Web5 | |
  11.  
  12. [Binding]
  13. public class Search
  14. {
  15. [Given(@"I Navigate to WebPage with (.*)")]
  16. public void GivenINavigateToWebpageWith(int date)
  17. {
  18. DateTime localDate = DateTime.Now;
  19. String[] formats = { "yyyyMMdd" };
  20. String[] cultureNames = { "en-US" };
  21. DateTime date = new DateTime();
  22. CurrentBrowserNavigation("https://webpage.com/foo/bar/blah/blah/en-us/?startdate=" + date + "&anotherThing=1");
  23. }
Add Comment
Please, Sign In to add comment