235236237238239240241242243244245
selenium.type ("name", "Tom"); selenium.click ("submit"); selenium.waitForPageToLoad ("3000"); success = (selenium.getHtmlSource().indexOf ("says hello to") > 0); selenium.stop(); } catch (Exception e) { e.printStackTrace(); success = false; } return success;
246247248249250251252253254255256
success = (selenium.getHtmlSource().indexOf ("Hello World!!") > 0); if (success == true) { success = (selenium.getHtmlSource().indexOf ("100 USD = 3938.81 INR") > 0); } abbotHelper.waitTime (AbbotHelper.WAIT_STANDARD); selenium.stop(); } catch (Exception e) { e.printStackTrace(); success = false; }
189190191192193194195196
selenium.type("name", "Tom"); selenium.click("submit"); selenium.waitForPageToLoad( "3000" ); AssertUtil.assertTrue(selenium.getHtmlSource().indexOf( "says hello to" ) > 0); selenium.stop(); } }
7778798081828384858687
serverTasks.stopServer(); // remove the server serverTasks.removeServer(); selenium.stop(); success = true; } catch (Exception e) { e.printStackTrace();
111112113114115116117118119120121
selenium.waitForPageToLoad ("2000"); selenium.type ("j_username", "system"); selenium.type ("j_password", "manager"); selenium.click ("submit"); selenium.stop(); } } catch (Exception e) { e.printStackTrace(); success = false; }
224225226227228229230231232233234
selenium.open("http://localhost:8080/HelloWorld/index.jsp"); selenium.waitForPageToLoad("60000"); AssertUtil.assertTrue(selenium.getHtmlSource().indexOf( "Hello World!!" ) > 0); AssertUtil.assertTrue(selenium.getHtmlSource().indexOf( "100 USD = 3938.81 INR" ) > 0); aHelper.waitTime(1500); selenium.stop(); success=true; } catch (Exception e) { e.printStackTrace(); }
7677787980818283848586