Hello,
After loggin in on a Https site with the trusted site certificate.I do see the frameset response, but when i try to assert that the frames are present i get this exception
com.meterware.httpunit.NoSuchFrameException: No frame named navigation is currently active
at com.meterware.httpunit.WebWindow.getFrameContents(WebWindow.java:205)
at net.sourceforge.jwebunit.HttpUnitDialog.getFrame(HttpUnitDialog.java:1002)
at net.sourceforge.jwebunit.WebTester.assertFramePresent(WebTester.java:738)
at net.sourceforge.jwebunit.WebTestCase.assertFramePresent(WebTestCase.java:300)
at com.bv.common.BaseTest.loginSecondTier(BaseTest.java:113)
at com.bv.testcases.login.LoginTest.testLoginTierTwo(LoginTest.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:173)
at junit.framework.TestCase.runBare(TestCase.java:139)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
can you please tell me what might be the problem.
Because after logging in i need to get 5 frames, left, bottom,top, center and hiddsn frame.
but in the response when i try to dumpResponse to a html file i see the frameset response
i do get this while doing the dumpResposne
<HTML>
<HEAD>
<title></title>
<script language="_javascript_" src="" ></script>
<script language="_javascript_">
function lockBrowser(toggle){ if(toggle == 1)
LOCKME = true;
else
LOCKME = false; }
function checkLock(){
return LOCKME;
}
</script>
<SCRIPT LANGUAGE=_javascript_>
<!--
var isCONTROL = detectControl(); //--> </SCRIPT>
</HEAD>
<frameset framespacing="0" border="0" rows="59,100%,25,0%" frameborder="0">
<frame name="navigation" scrolling="no" noresize target="main" src="" marginwidth="0" marginheight="0">
<frameset framespacing="0" border="0" frameborder="0" cols="174,100%">
<frame name="tool" target="main" src="" marginwidth="0" marginheight="0" scrolling="no" noresize>
<frame name="main" src="" marginwidth="0" marginheight="0" scrolling="auto">
</frameset>
<frame name="bottom" scrolling="no" noresize target="main" src="" marginwidth="0" marginheight="0">
<frame name="vaultframe" scrolling="no" noresize target="main" src="" marginwidth="0" marginheight="0">
<noframes>
<body topmargin="0" leftmargin="0">
</body>
</noframes>
</frameset>
</HTML>
when i assert if each frame is present i get the above exception
thanks
poornima
After loggin in on a Https site with the trusted site certificate.I do see the frameset response, but when i try to assert that the frames are present i get this exception
com.meterware.httpunit.NoSuchFrameException: No frame named navigation is currently active
at com.meterware.httpunit.WebWindow.getFrameContents(WebWindow.java:205)
at net.sourceforge.jwebunit.HttpUnitDialog.getFrame(HttpUnitDialog.java:1002)
at net.sourceforge.jwebunit.WebTester.assertFramePresent(WebTester.java:738)
at net.sourceforge.jwebunit.WebTestCase.assertFramePresent(WebTestCase.java:300)
at com.bv.common.BaseTest.loginSecondTier(BaseTest.java:113)
at com.bv.testcases.login.LoginTest.testLoginTierTwo(LoginTest.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:173)
at junit.framework.TestCase.runBare(TestCase.java:139)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
can you please tell me what might be the problem.
Because after logging in i need to get 5 frames, left, bottom,top, center and hiddsn frame.
but in the response when i try to dumpResponse to a html file i see the frameset response
i do get this while doing the dumpResposne
<HTML>
<HEAD>
<title></title>
<script language="_javascript_" src="" ></script>
<script language="_javascript_">
function lockBrowser(toggle){ if(toggle == 1)
LOCKME = true;
else
LOCKME = false; }
function checkLock(){
return LOCKME;
}
</script>
<SCRIPT LANGUAGE=_javascript_>
<!--
var isCONTROL = detectControl(); //--> </SCRIPT>
</HEAD>
<frameset framespacing="0" border="0" rows="59,100%,25,0%" frameborder="0">
<frame name="navigation" scrolling="no" noresize target="main" src="" marginwidth="0" marginheight="0">
<frameset framespacing="0" border="0" frameborder="0" cols="174,100%">
<frame name="tool" target="main" src="" marginwidth="0" marginheight="0" scrolling="no" noresize>
<frame name="main" src="" marginwidth="0" marginheight="0" scrolling="auto">
</frameset>
<frame name="bottom" scrolling="no" noresize target="main" src="" marginwidth="0" marginheight="0">
<frame name="vaultframe" scrolling="no" noresize target="main" src="" marginwidth="0" marginheight="0">
<noframes>
<body topmargin="0" leftmargin="0">
</body>
</noframes>
</frameset>
</HTML>
when i assert if each frame is present i get the above exception
thanks
poornima
