[Webtest] User-Agent value for Internet Explorer?
Florent Blondeau
Florent Blondeau <fblondeau@pingwy.com>
Wed, 21 Nov 2007 18:58:13 +0100
This is a multi-part message in MIME format.
--------------080100060905000705050300
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
hello,
I think that if you don't specify any header, webtest (htmlUnit in fact)
works with IE 6 under Win 98 :
"INFO (com.canoo.webtest.engine.Configuration) - Surfing with browser
4.0 (compatible; MSIE 6.0; Windows 98)"
If that is not the OS you want, try to add one fetched from this site
<http://www.user-agents.org/index.shtml?moz>
As far as I know (and that goes not very far, I apologize) thats depends
only on the underlying "browser" of webtest (htmlUnit) that does its
best to simulate the browser you specify.
So I think you can find something about that in the HtmlUnit documentation
that
<http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/BrowserVersion.html>
could interest you... to see which browsers are supported, and that
<http://lists.canoo.com/pipermail/webtest/2004q4/002955.html>
which is a bit old but explain the concerns
cheers
Bhandari, Nikhil a écrit :
>
> How do we define value of Internet Explorer in the header tag
> 'User-Agent'?
>
> I tried following few options, but none of them seems to be working,
>
>
>
> <header name="User-Agent" value="MSIE/6.0"/>
>
> <header name="User-Agent" value="InternetExporer/6.0"/>
>
>
>
> The web URL I am trying only works with IE.
>
>
>
>
> ---------------------------------------------------------------------
>
> <config
>
> basepath=""
>
> summary="true"
>
> saveresponse="true"
>
> resultfile="${wt.resultfile}"
>
> resultpath="${wt.resultpath}"
>
> haltonfailure="false"
>
> haltonerror="false" >
>
> <header name="User-Agent" value=""/>
>
> </config>
>
> ---------------------------------------------------------------------
>
>
>
--
Pingwy
27, rue des arènes
49100 Angers
--------------080100060905000705050300
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hello,<br>
<br>
I think that if you don't specify any header, webtest (htmlUnit in
fact) works with IE 6 under Win 98 : <br>
"INFO (com.canoo.webtest.engine.Configuration) - Surfing with browser
4.0 (compatible; MSIE 6.0; Windows 98)"<br>
<br>
If that is not the OS you want, try to add one fetched from <a
href="http://www.user-agents.org/index.shtml?moz">this site</a> <br>
<br>
As far as I know (and that goes not very far, I apologize) thats
depends only on the underlying "browser" of webtest (htmlUnit) that
does its best to simulate the browser you specify.<br>
<br>
So I think you can find something about that in the HtmlUnit
documentation<br>
<br>
<a
href="http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/BrowserVersion.html">that</a>
could interest you... to see which browsers are supported, and <a
href="http://lists.canoo.com/pipermail/webtest/2004q4/002955.html">that</a><br>
which is a bit old but explain the concerns<br>
<br>
cheers<br>
<br>
<br>
Bhandari, Nikhil a écrit :
<blockquote
cite="mid:1B9ECEEA84049346A12DA3A8D0E7A3E6F645EF@banex01.corp.intuit.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h3
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:13.5pt;
font-family:"Times New Roman";
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">How do we
define value of Internet
Explorer in the header tag ‘User-Agent’?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">I tried
following few options, but none of
them seems to be working,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><header
name="User-Agent"
value="MSIE/6.0"/><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><header
name="User-Agent"
value="InternetExporer/6.0"/><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">The web URL
I am trying only works with IE.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">---------------------------------------------------------------------<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><config <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
basepath="" <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
summary="true" <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
saveresponse="true" <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
resultfile="${wt.resultfile}"
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
resultpath="${wt.resultpath}"
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
haltonfailure="false"
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">
haltonerror="false"
><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><header
name="User-Agent"
value=""/><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"></config><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">---------------------------------------------------------------------<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Pingwy
27, rue des arènes
49100 Angers
</pre>
</body>
</html>
--------------080100060905000705050300--