Test Output Index

testDefaultUserAgentAndBrowserVersion

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1
ClickthePage
Has TextUserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Has TextAppName = Microsoft Internet Explorer
Has TextAppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <a id="a1" onclick="showUserAgent()">
      click me
    </a>
  </body>
</html>
Element Focusa1
a
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
    <br/>
    AppName = Microsoft Internet Explorer
    <br/>
    AppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)
  </body>
</html>
Has TextUserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Has TextAppName = Microsoft Internet Explorer
Has TextAppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)

testSetUserAgent

Setup after run:
HtmlFixture
WARNING: no focus element
Javascript:onon
Set User Agent
browser restarted (cookies cleared) with user agent htmlunit
htmlunit
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1
ClickthePage
Has TextUserAgent = htmlunit
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <a id="a1" onclick="showUserAgent()">
      click me
    </a>
  </body>
</html>
Element Focusa1
a
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    UserAgent = htmlunit
    <br/>
    AppName = Microsoft Internet Explorer
    <br/>
    AppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)
  </body>
</html>
Has TextUserAgent = htmlunit

testSetUserAgentPersistance

Setup after run:
HtmlFixture
WARNING: no focus element
Javascript:onon
Set User Agent
browser restarted (cookies cleared) with user agent htmlunit
htmlunit
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1
ClickthePage
Has TextUserAgent = htmlunit
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <a id="a1" onclick="showUserAgent()">
      click me
    </a>
  </body>
</html>
Element Focusa1
a
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    UserAgent = htmlunit
    <br/>
    AppName = Microsoft Internet Explorer
    <br/>
    AppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)
  </body>
</html>
Has TextUserAgent = htmlunit

testSetBrowserVersion

Setup after run:
HtmlFixture
WARNING: no focus element
Javascript:onon
Set Browser VersionFIREFOX_2
Web Client restarted with new browser version. UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1
ClickthePage
Matches TextUserAgent = Mozilla/5.0 .* Firefox/2
Has TextAppName = Netscape
Has TextAppVersion = 5.0 (Windows; en-US)
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <a id="a1" onclick="showUserAgent()">
      click me
    </a>
  </body>
</html>
Element Focusa1
a
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
    <br/>
    AppName = Netscape
    <br/>
    AppVersion = 5.0 (Windows; en-US)
  </body>
</html>
Matches TextUserAgent = Mozilla/5.0 .* Firefox/2
matched with: UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2
Has TextAppName = Netscape
Has TextAppVersion = 5.0 (Windows; en-US)

testSetBrowserVersionErrorOnUnknownVersion

fitnesse table before run:
HtmlFixture
Set Browser VersionUNKNOWN
fitnesse table after run:
HtmlFixture
WARNING: no focus element
Set Browser VersionUNKNOWN
java.lang.IllegalArgumentException: Unrecognized Browser Version (UNKNOWN). Valid entries are FIREFOX_2 INTERNET_EXPLORER_6_0 INTERNET_EXPLORER_7_0 at com.jbergin.HtmlFixture.initBrowserVersion(HtmlFixture.java:354) at com.jbergin.HtmlFixture.cmd_setBrowserVersion(HtmlFixture.java:367) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.jbergin.HtmlFixture.doRow(HtmlFixture.java:298) at fit.Fixture.doRows(Fixture.java:165) at com.jbergin.HtmlFixture.doTable(HtmlFixture.java:247) at com.jbergin.HtmlFixtureTestCase.prepareTest(HtmlFixtureTestCase.java:334) at com.jbergin.SetBrowserVersionAndUserAgentTest.testSetBrowserVersionErrorOnUnknownVersion(SetBrowserVersionAndUserAgentTest.java:93) 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:585) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) 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:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

testSetBrowserVersionDefault

Setup after run:
HtmlFixture
WARNING: no focus element
Javascript:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1
ClickthePage
Has TextUserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Has TextAppName = Microsoft Internet Explorer
Has TextAppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <a id="a1" onclick="showUserAgent()">
      click me
    </a>
  </body>
</html>
Element Focusa1
a
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
    <br/>
    AppName = Microsoft Internet Explorer
    <br/>
    AppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)
  </body>
</html>
Has TextUserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Has TextAppName = Microsoft Internet Explorer
Has TextAppVersion = 4.0 (compatible; MSIE 6.0b; Windows 98)

testSetBrowserVersionPersistance

Setup after run:
HtmlFixture
WARNING: no focus element
Javascript:onon
Set Browser VersionFIREFOX_2
Web Client restarted with new browser version. UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1
ClickthePage
Matches TextUserAgent = Mozilla/5.0 .* Firefox/2
Has TextAppName = Netscape
Has TextAppVersion = 5.0 (Windows; en-US)
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <a id="a1" onclick="showUserAgent()">
      click me
    </a>
  </body>
</html>
Element Focusa1
a
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
    <br/>
    AppName = Netscape
    <br/>
    AppVersion = 5.0 (Windows; en-US)
  </body>
</html>
Matches TextUserAgent = Mozilla/5.0 .* Firefox/2
matched with: UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2
Has TextAppName = Netscape
Has TextAppVersion = 5.0 (Windows; en-US)

testSetBrowserVersionThenUserAgentThenBrowserVersion

Setup after run:
HtmlFixture
WARNING: no focus element
Javascript:onon
Set Browser VersionFIREFOX_2
Web Client restarted with new browser version. UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Set User Agent
browser restarted (cookies cleared) with user agent htmlunit
htmlunit
Set Browser VersionFIREFOX_2
Web Client restarted with new browser version. UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
fitnesse table before run:
HtmlFixture
http://firstthePage
Element Focusa1
ClickthePage
Matches TextUserAgent = Mozilla/5.0 .* Firefox/2
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <a id="a1" onclick="showUserAgent()">
      click me
    </a>
  </body>
</html>
Element Focusa1
a
Click
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <script>
//<![CDATA[
   function showUserAgent()    {     var out = '';     out += 'UserAgent = ' + navigator.userAgent;     out += '<br>AppName = ' + navigator.appName;     out += '<br>AppVersion = ' + navigator.appVersion;     document.getElementById('bodyTag').innerHTML = out;    }  
//]]>
    </script>
  </head>
  <body id="bodyTag">
    UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
    <br/>
    AppName = Netscape
    <br/>
    AppVersion = 5.0 (Windows; en-US)
  </body>
</html>
Matches TextUserAgent = Mozilla/5.0 .* Firefox/2
matched with: UserAgent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2