Updated Web Service acceptance test suite. merge_php_to_main
authorRoman Mostyka <romanmostyka@netbeans.org>
Wed, 16 Apr 2008 16:21:50 +0400
changeset 2483fc74e30db313
parent 2482 c637b89168a3
child 2485 6f30dd052ee0
Updated Web Service acceptance test suite.
visualweb.websvcmgr/test/qa-functional/src/org/netbeans/test/websvcmgr/WebServiceAcceptanceTest.java
     1.1 --- a/visualweb.websvcmgr/test/qa-functional/src/org/netbeans/test/websvcmgr/WebServiceAcceptanceTest.java	Wed Apr 16 16:14:31 2008 +0400
     1.2 +++ b/visualweb.websvcmgr/test/qa-functional/src/org/netbeans/test/websvcmgr/WebServiceAcceptanceTest.java	Wed Apr 16 16:21:50 2008 +0400
     1.3 @@ -82,6 +82,8 @@
     1.4      private static String deletePopup = "Delete";
     1.5      private static String reformatPopup = "Format";
     1.6      private static String addToPagePopup = "Add to Page";
     1.7 +    private static String menuCopy = "Edit|Copy";
     1.8 +    private static String menuPaste = "Edit|Paste";
     1.9      private static String testMethod = "Test Method";
    1.10      private static String dlgQuestion = "Question";
    1.11      private static String dlgTestMethod = "Test Web Service Method";
    1.12 @@ -171,7 +173,7 @@
    1.13          jto1.changeCellObject(0, 2, properties.get(wsMethodParameter).toString());
    1.14          TestUtils.wait(1000);
    1.15          new JButtonOperator(jdo, btnSubmit).push();
    1.16 -        TestUtils.wait(5000);
    1.17 +        TestUtils.wait(10000);
    1.18          JTableOperator jto2 = new JTableOperator(jdo, 1);
    1.19          if (jto2.getValueAt(0, 1).toString().indexOf(properties.get(wsResponse).toString()) == -1) {
    1.20              fail("There is no needed string in response!");
    1.21 @@ -241,7 +243,13 @@
    1.22          server = ServerNavigatorOperator.showNavigatorOperator();
    1.23          TestUtils.wait(4000);
    1.24          sntree = server.getTree();
    1.25 -        server.pushPopup(wsPath + properties.get(wsName).toString(), addToPagePopup);
    1.26 +        server.selectPath(wsPath + properties.get(wsName).toString());
    1.27 +        Util.getMainMenu().pushMenu(menuCopy);
    1.28 +        WebPageFolder wpf = prj.getRoot().getWebPageRootFolder();
    1.29 +        WebPage wp = wpf.getWebPage("Page1");
    1.30 +        wp.open();
    1.31 +        TestUtils.wait(1000);
    1.32 +        Util.getMainMenu().pushMenu(menuPaste);
    1.33          TestUtils.wait(30000);
    1.34      }
    1.35