Guest User

Untitled

a guest
Nov 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. public class SimpleTest() extends TestBase
  2.  
  3. {
  4.  
  5. AppiumDriver driver;
  6.  
  7. @BeforeSuite
  8. public void setUp() throws MalformedURLException {
  9.  
  10. // DesiredCapabilities and all setup
  11.  
  12. }
  13. @Test(priority = 1)
  14. public void testcase1()throws InterruptedException {
  15.  
  16. login();
  17. }
  18. @Test(priority = 2)
  19. public void testcase2() throws InterruptedException {
  20.  
  21. //something
  22.  
  23. }
  24.  
  25. @Test(priority = 3)
  26. public void testcase3() throws InterruptedException {
  27.  
  28. //something
  29. }
  30. @Test(priority = 4)
  31. public void testcase4 throws InterruptedException {
  32.  
  33. //something
  34.  
  35. }
  36. @Test(priority = 5)
  37. public void testcase() throws InterruptedException{
  38.  
  39. //something
  40.  
  41. }
  42.  
  43. @Test(priority = 6)
  44. public void testcase6() throws InterruptedException{
  45.  
  46. //something
  47. }
  48.  
  49. @Test(priority = 7)
  50. public void testcase_logout() throws InterruptedException {
  51. logout();
  52. }
  53.  
  54. @AfterSuite
  55. public void testCaseTearDown()
  56. {
  57. driver.quit();
  58. }
  59.  
  60. }
Add Comment
Please, Sign In to add comment