Update of /cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/plugin/jacobie
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18675/src/net/sourceforge/jwebunit/plugin/jacobie

Modified Files:
        JacobieDialog.java 
Log Message:
incremental iteration implementing more on JacobieDialog.  adding exception 
handling between testing dialog an webtester.

Index: JacobieDialog.java
===================================================================
RCS file: 
/cvsroot/jwebunit/jWebUnit/src/net/sourceforge/jwebunit/plugin/jacobie/JacobieDialog.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** JacobieDialog.java  16 Mar 2005 05:56:03 -0000      1.5
--- JacobieDialog.java  15 Apr 2005 04:52:40 -0000      1.6
***************
*** 107,111 ****
         * Resets all private variables contained by this class.
         */
!       public void reset() {
                resetIE();
        }
--- 107,111 ----
         * Resets all private variables contained by this class.
         */
!       public void reset() throws TestingEngineResponseException {
                resetIE();
        }
***************
*** 123,132 ****
         * one.
         */
!       public void resetIE() {
                IE theIE = getIe();
!               theIE.Quit();
!               //ComThread.Release(); //this may have been causing problems 
between
!               // each "test" method ran.
!               setIe(null);
        }
  
--- 123,137 ----
         * one.
         */
!       public void resetIE() throws TestingEngineResponseException {
                IE theIE = getIe();
!               try {
!                       theIE.Quit();
!               } catch (InterruptedException aInterruptedException) {
!                       throw new 
TestingEngineResponseException(ExceptionUtility
!                                       
.stackTraceToString(aInterruptedException));
!               } finally {
!                       setIe(null);
!               }
! 
        }
  
***************
*** 208,212 ****
                if (theString == null) {
                        throw new RuntimeException(
!                                       "Element Not Found witht the following 
name: [" + paramName
                                                        + "]");
                }
--- 213,217 ----
                if (theString == null) {
                        throw new RuntimeException(
!                                       "Element Not Found with the following 
name: [" + paramName
                                                        + "]");
                }
***************
*** 385,389 ****
                boolean bReturn = false;
                Document theDocument = getIe().getDocument();
!               if (theDocument != null && 
theDocument.hasLinkByInnerHTML(imageFileName)) {
                        bReturn = true;
                }
--- 390,395 ----
                boolean bReturn = false;
                Document theDocument = getIe().getDocument();
!               if (theDocument != null
!                               && 
theDocument.hasLinkByInnerHTML(imageFileName)) {
                        bReturn = true;
                }
***************
*** 549,561 ****
        }
  
!     /**
!      * Navigate by submitting a request based on a link with a given image 
file name. A RuntimeException is thrown if
!      * no such link can be found.
!      * 
!      * @param imageFileName
!      *            A suffix of the image's filename; for example, to match 
<tt>"images/my_icon.png"<tt>, you could just pass in
!      *                      <tt>"my_icon.png"<tt>.
!      */
!     public void clickLinkWithImage(String imageFileName) {
                try {
                        IE theIE = getIe();
--- 555,568 ----
        }
  
!       /**
!        * Navigate by submitting a request based on a link with a given image 
file
!        * name. A RuntimeException is thrown if no such link can be found.
!        * 
!        * @param imageFileName
!        *            A suffix of the image's filename; for example, to match
!        *            <tt>"images/my_icon.png"<tt>, you could just pass in
!        *                      <tt>"my_icon.png"<tt>.
!        */
!       public void clickLinkWithImage(String imageFileName) {
                try {
                        IE theIE = getIe();
***************
*** 569,577 ****
                                        .stackTraceToString(anException));
                }
-       
-     }
  
!       
!       
        public void clickLinkWithText(String linkText) {
                try {
--- 576,582 ----
                                        .stackTraceToString(anException));
                }
  
!       }
! 
        public void clickLinkWithText(String linkText) {
                try {
***************
*** 619,622 ****
--- 624,632 ----
        }
  
+       public void clickLinkWithTextAfterText(String linkText, String 
labelText) {
+               throw new UnsupportedOperationException(
+                               "clickLinkWithTextAfterText not supported yet 
by Jacobie");
+       }
+ 
        /**
         * Clicks a radio option. Asserts that the radio option exists first. *



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to