You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-dev@incubator.apache.org by Avdhesh Yadav <av...@avdheshyadav.com> on 2010/04/06 14:31:34 UTC

Browser Support

Photark is supposed to work on most of popular browsers.But there is always
a concern that it may not work well on some browsers.I think its not
feasible to support all the browsers.We should test photark on two popular
browsers before commiting anything releated to UI in SVN.

1. Fire Fox
2. IE
3. Chrome(may be)

Thoughts ?

-- 
Avdhesh Yadav
http://www.avdheshyadav.com

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
On 6 April 2010 20:01, Avdhesh Yadav <av...@avdheshyadav.com> wrote:

> Photark is supposed to work on most of popular browsers.But there is always
> a concern that it may not work well on some browsers.I think its not
> feasible to support all the browsers.We should test photark on two popular
> browsers before commiting anything releated to UI in SVN.
>
> 1. Fire Fox
> 2. IE
> 3. Chrome(may be)
>
> Thoughts ?
>
> hi,
I had checked the product with all three browsers

In Firefox its working fine.

Chrome seems ok but there was a small issue with pictures that they are
stretched. I think this is because the hight of the image is not specified
properly. other than that I didn't see any problem in chrome.

but unfortunately IE8 is not showing any images !

i'll open  a jira issue for this.

regards
suho

> --
> Avdhesh Yadav
> http://www.avdheshyadav.com
>

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
On 30 April 2010 20:55, Avdhesh Yadav <av...@avdheshyadav.com> wrote:

> Thanks. I will check the tuscany.For Now i will commit patch after suho
> submit the improved patch.
>
> On Fri, Apr 30, 2010 at 8:29 PM, Luciano Resende <luckbr1975@gmail.com
> >wrote:
>
> > On Fri, Apr 30, 2010 at 7:13 AM, Avdhesh Yadav <av...@avdheshyadav.com>
> > wrote:
> > > Hi,
> > >
> > > Is there already any project in apache using integration test folder ?.
> I
> > am
> > > interested in looking into the strategy followed by other apache
> projects
> > in
> > > this situation.
> > >
> > Yes, and possibly various projects might use different strategies.
> > This one is what we use for Tuscany, and I'm sure there are others but
> > I'll have to research to give you pointers.
> >
> > > What suggested by Suho is also good.I think we should commit the Test
> > Cases
> > > and then later on we can integrate the cargo plug-in.
> > >
> >
>

I have attached the patch on  jira.

When I was going through The Cargo deployment code
I came through places with user specific codes
e.g.

InstalledLocalContainer container =
    new Resin3xInstalledLocalContainer(configuration);
container.setHome("c:/apps/resin-3.0.18");

Here the path to the server has to given and in our case since we can't ship
tomcat
with our SVN. I think the user has to edit the code to specify the location
of his server.

I'm not sure how this works in Tuscany. I think after going through the
Tuscany code we can implement this quit fast. Since i have my gsoc project
around I'm not spending much time right now but I will definitely try and
automate that when I'm writing the UI test cases for gsoc.

Regards
Suho

> +1 for committing it the way it is now (and disable it from the main
> build)
> > Interactive approach is a good way to refine and get things beter and
> > better with the community help
> > > --
> > > Avdhesh Yadav
> > > http://www.avdheshyadav.com
> > > http://twitter.com/yadavavdhesh
> > >
> > >
> > > On Fri, Apr 30, 2010 at 12:16 AM, Luciano Resende <
> luckbr1975@gmail.com
> > >wrote:
> > >
> > >> On Thu, Apr 29, 2010 at 11:32 AM, Suhothayan Sriskandarajah
> > >> <su...@gmail.com> wrote:
> > >> > On 28 April 2010 12:30, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> > >> >>
> > >> >> Updated to Dojo 1.4.2
> > >> >>
> > >> > thanks Avidash,
> > >> >
> > >> > I'm now integrating HtmlUnit with PhotArk.
> > >> > but when I'm doing so I encountered this problem..
> > >> >
> > >> > For the HtmlUnit test to pass we should first start the server
> before
> > >> > testing.
> > >> > Otherwise the test case fails saying that it couldn't connect to the
> > >> server.
> > >> >
> > >> > the problem is, when automating HtmlUnit testing we cant always
> start
> > the
> > >> > server
> > >> > and if we don't start the server the build will be failing.
> > >> >
> > >> > here we cannot use
> > >> >
> > >> > maven.skip.test=true
> > >> >
> > >> > or smiler alternatives because they will skip all the tests.
> > >> >
> > >> > Therefore I'm suggesting the to rename these htmlunit test cases as
> > >> > XXXXTestBrwser
> > >> > by renaming these the maven-surefire-plugin wont test these test
> > cases.
> > >> > this is because we have defined test as
> > >> > <include>**/*TestCase.java</include>
> > >> >
> > >> > and it we want to test these HtmlUnit test cases
> > >> > we can start the server and run
> > >> >
> > >> > mvn -Dtest=*TestBrwser test
> > >> >
> > >> > which will only run the test cases wish ends with TestBrwser.java
> > >> >
> > >> > Please give your suggesting and let me know whether I'm implementing
> > this
> > >> in
> > >> > the correct way ?
> > >> >
> > >> > Regards
> > >> > Suho
> > >> >
> > >> >
> > >>
> > >>
> > >> This seems like chicken/egg thing, but mainly because the test is
> > >> being added together with the UI module. Here are some possible ideas
> > >> to overcome this issue :
> > >>
> > >>  - Move tests to a integration test folder
> > >>   (e.g /iTest/photark)
> > >>
> > >>  - Use some maven plugin that would handle the integration with the
> > >> application server (and manage the lifecycle for example) and run the
> > >> tests afterwards (e.g cargo plugin [1])
> > >>
> > >> I hope this can give you some ideas on how to solve the problem, but i
> > >> understand it does not have all the details...
> > >>
> > >>
> > >> [1] http://cargo.codehaus.org/Maven2+plugin
> > >> [2] http://cargo.codehaus.org/Tomcat+6.x
> > >>
> > >>
> > >> --
> > >> Luciano Resende
> > >> http://people.apache.org/~lresende<http://people.apache.org/%7Elresende>
> <http://people.apache.org/%7Elresende><
> > http://people.apache.org/%7Elresende>
> > >> http://twitter.com/lresende1975
> > >> http://lresende.blogspot.com/
> > >>
> > >
> >
> >
> >
> > --
> > Luciano Resende
> > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende><
> http://people.apache.org/%7Elresende>
> > http://twitter.com/lresende1975
> > http://lresende.blogspot.com/
> >
>
>
>
> --
> Avdhesh Yadav
> http://www.avdheshyadav.com
> http://twitter.com/yadavavdhesh
>

Re: Browser Support

Posted by Avdhesh Yadav <av...@avdheshyadav.com>.
Thanks. I will check the tuscany.For Now i will commit patch after suho
submit the improved patch.

On Fri, Apr 30, 2010 at 8:29 PM, Luciano Resende <lu...@gmail.com>wrote:

> On Fri, Apr 30, 2010 at 7:13 AM, Avdhesh Yadav <av...@avdheshyadav.com>
> wrote:
> > Hi,
> >
> > Is there already any project in apache using integration test folder ?. I
> am
> > interested in looking into the strategy followed by other apache projects
> in
> > this situation.
> >
> Yes, and possibly various projects might use different strategies.
> This one is what we use for Tuscany, and I'm sure there are others but
> I'll have to research to give you pointers.
>
> > What suggested by Suho is also good.I think we should commit the Test
> Cases
> > and then later on we can integrate the cargo plug-in.
> >
>
> +1 for committing it the way it is now (and disable it from the main build)
> Interactive approach is a good way to refine and get things beter and
> better with the community help
> > --
> > Avdhesh Yadav
> > http://www.avdheshyadav.com
> > http://twitter.com/yadavavdhesh
> >
> >
> > On Fri, Apr 30, 2010 at 12:16 AM, Luciano Resende <luckbr1975@gmail.com
> >wrote:
> >
> >> On Thu, Apr 29, 2010 at 11:32 AM, Suhothayan Sriskandarajah
> >> <su...@gmail.com> wrote:
> >> > On 28 April 2010 12:30, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> >> >>
> >> >> Updated to Dojo 1.4.2
> >> >>
> >> > thanks Avidash,
> >> >
> >> > I'm now integrating HtmlUnit with PhotArk.
> >> > but when I'm doing so I encountered this problem..
> >> >
> >> > For the HtmlUnit test to pass we should first start the server before
> >> > testing.
> >> > Otherwise the test case fails saying that it couldn't connect to the
> >> server.
> >> >
> >> > the problem is, when automating HtmlUnit testing we cant always start
> the
> >> > server
> >> > and if we don't start the server the build will be failing.
> >> >
> >> > here we cannot use
> >> >
> >> > maven.skip.test=true
> >> >
> >> > or smiler alternatives because they will skip all the tests.
> >> >
> >> > Therefore I'm suggesting the to rename these htmlunit test cases as
> >> > XXXXTestBrwser
> >> > by renaming these the maven-surefire-plugin wont test these test
> cases.
> >> > this is because we have defined test as
> >> > <include>**/*TestCase.java</include>
> >> >
> >> > and it we want to test these HtmlUnit test cases
> >> > we can start the server and run
> >> >
> >> > mvn -Dtest=*TestBrwser test
> >> >
> >> > which will only run the test cases wish ends with TestBrwser.java
> >> >
> >> > Please give your suggesting and let me know whether I'm implementing
> this
> >> in
> >> > the correct way ?
> >> >
> >> > Regards
> >> > Suho
> >> >
> >> >
> >>
> >>
> >> This seems like chicken/egg thing, but mainly because the test is
> >> being added together with the UI module. Here are some possible ideas
> >> to overcome this issue :
> >>
> >>  - Move tests to a integration test folder
> >>   (e.g /iTest/photark)
> >>
> >>  - Use some maven plugin that would handle the integration with the
> >> application server (and manage the lifecycle for example) and run the
> >> tests afterwards (e.g cargo plugin [1])
> >>
> >> I hope this can give you some ideas on how to solve the problem, but i
> >> understand it does not have all the details...
> >>
> >>
> >> [1] http://cargo.codehaus.org/Maven2+plugin
> >> [2] http://cargo.codehaus.org/Tomcat+6.x
> >>
> >>
> >> --
> >> Luciano Resende
> >> http://people.apache.org/~lresende<http://people.apache.org/%7Elresende><
> http://people.apache.org/%7Elresende>
> >> http://twitter.com/lresende1975
> >> http://lresende.blogspot.com/
> >>
> >
>
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>



-- 
Avdhesh Yadav
http://www.avdheshyadav.com
http://twitter.com/yadavavdhesh

Re: Browser Support

Posted by Luciano Resende <lu...@gmail.com>.
On Fri, Apr 30, 2010 at 7:13 AM, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> Hi,
>
> Is there already any project in apache using integration test folder ?. I am
> interested in looking into the streatgy followed by other apache projects in
> this situation.
>
Yes, and possibly various projects might use different strategies.
This one is what we use for Tuscany, and I'm sure there are others but
I'll have to research to give you pointers.

> What suggested by Suho is also good.I think we should commit the Test Cases
> and then later on we can integrate the cargo plug-in.
>

+1 for committing it the way it is now (and disable it from the main build)
Interactive approach is a good way to refine and get things beter and
better with the community help
> --
> Avdhesh Yadav
> http://www.avdheshyadav.com
> http://twitter.com/yadavavdhesh
>
>
> On Fri, Apr 30, 2010 at 12:16 AM, Luciano Resende <lu...@gmail.com>wrote:
>
>> On Thu, Apr 29, 2010 at 11:32 AM, Suhothayan Sriskandarajah
>> <su...@gmail.com> wrote:
>> > On 28 April 2010 12:30, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
>> >>
>> >> Updated to Dojo 1.4.2
>> >>
>> > thanks Avidash,
>> >
>> > I'm now integrating HtmlUnit with PhotArk.
>> > but when I'm doing so I encountered this problem..
>> >
>> > For the HtmlUnit test to pass we should first start the server before
>> > testing.
>> > Otherwise the test case fails saying that it couldn't connect to the
>> server.
>> >
>> > the problem is, when automating HtmlUnit testing we cant always start the
>> > server
>> > and if we don't start the server the build will be failing.
>> >
>> > here we cannot use
>> >
>> > maven.skip.test=true
>> >
>> > or smiler alternatives because they will skip all the tests.
>> >
>> > Therefore I'm suggesting the to rename these htmlunit test cases as
>> > XXXXTestBrwser
>> > by renaming these the maven-surefire-plugin wont test these test cases.
>> > this is because we have defined test as
>> > <include>**/*TestCase.java</include>
>> >
>> > and it we want to test these HtmlUnit test cases
>> > we can start the server and run
>> >
>> > mvn -Dtest=*TestBrwser test
>> >
>> > which will only run the test cases wish ends with TestBrwser.java
>> >
>> > Please give your suggesting and let me know whether I'm implementing this
>> in
>> > the correct way ?
>> >
>> > Regards
>> > Suho
>> >
>> >
>>
>>
>> This seems like chicken/egg thing, but mainly because the test is
>> being added together with the UI module. Here are some possible ideas
>> to overcome this issue :
>>
>>  - Move tests to a integration test folder
>>   (e.g /iTest/photark)
>>
>>  - Use some maven plugin that would handle the integration with the
>> application server (and manage the lifecycle for example) and run the
>> tests afterwards (e.g cargo plugin [1])
>>
>> I hope this can give you some ideas on how to solve the problem, but i
>> understand it does not have all the details...
>>
>>
>> [1] http://cargo.codehaus.org/Maven2+plugin
>> [2] http://cargo.codehaus.org/Tomcat+6.x
>>
>>
>> --
>> Luciano Resende
>> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
>> http://twitter.com/lresende1975
>> http://lresende.blogspot.com/
>>
>



-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Browser Support

Posted by Avdhesh Yadav <av...@avdheshyadav.com>.
Hi,

Is there already any project in apache using integration test folder ?. I am
interested in looking into the streatgy followed by other apache projects in
this situation.

What suggested by Suho is also good.I think we should commit the Test Cases
and then later on we can integrate the cargo plug-in.

-- 
Avdhesh Yadav
http://www.avdheshyadav.com
http://twitter.com/yadavavdhesh


On Fri, Apr 30, 2010 at 12:16 AM, Luciano Resende <lu...@gmail.com>wrote:

> On Thu, Apr 29, 2010 at 11:32 AM, Suhothayan Sriskandarajah
> <su...@gmail.com> wrote:
> > On 28 April 2010 12:30, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> >>
> >> Updated to Dojo 1.4.2
> >>
> > thanks Avidash,
> >
> > I'm now integrating HtmlUnit with PhotArk.
> > but when I'm doing so I encountered this problem..
> >
> > For the HtmlUnit test to pass we should first start the server before
> > testing.
> > Otherwise the test case fails saying that it couldn't connect to the
> server.
> >
> > the problem is, when automating HtmlUnit testing we cant always start the
> > server
> > and if we don't start the server the build will be failing.
> >
> > here we cannot use
> >
> > maven.skip.test=true
> >
> > or smiler alternatives because they will skip all the tests.
> >
> > Therefore I'm suggesting the to rename these htmlunit test cases as
> > XXXXTestBrwser
> > by renaming these the maven-surefire-plugin wont test these test cases.
> > this is because we have defined test as
> > <include>**/*TestCase.java</include>
> >
> > and it we want to test these HtmlUnit test cases
> > we can start the server and run
> >
> > mvn -Dtest=*TestBrwser test
> >
> > which will only run the test cases wish ends with TestBrwser.java
> >
> > Please give your suggesting and let me know whether I'm implementing this
> in
> > the correct way ?
> >
> > Regards
> > Suho
> >
> >
>
>
> This seems like chicken/egg thing, but mainly because the test is
> being added together with the UI module. Here are some possible ideas
> to overcome this issue :
>
>  - Move tests to a integration test folder
>   (e.g /iTest/photark)
>
>  - Use some maven plugin that would handle the integration with the
> application server (and manage the lifecycle for example) and run the
> tests afterwards (e.g cargo plugin [1])
>
> I hope this can give you some ideas on how to solve the problem, but i
> understand it does not have all the details...
>
>
> [1] http://cargo.codehaus.org/Maven2+plugin
> [2] http://cargo.codehaus.org/Tomcat+6.x
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>

Re: Browser Support

Posted by Luciano Resende <lu...@gmail.com>.
On Thu, Apr 29, 2010 at 11:32 AM, Suhothayan Sriskandarajah
<su...@gmail.com> wrote:
> On 28 April 2010 12:30, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
>>
>> Updated to Dojo 1.4.2
>>
> thanks Avidash,
>
> I'm now integrating HtmlUnit with PhotArk.
> but when I'm doing so I encountered this problem..
>
> For the HtmlUnit test to pass we should first start the server before
> testing.
> Otherwise the test case fails saying that it couldn't connect to the server.
>
> the problem is, when automating HtmlUnit testing we cant always start the
> server
> and if we don't start the server the build will be failing.
>
> here we cannot use
>
> maven.skip.test=true
>
> or smiler alternatives because they will skip all the tests.
>
> Therefore I'm suggesting the to rename these htmlunit test cases as
> XXXXTestBrwser
> by renaming these the maven-surefire-plugin wont test these test cases.
> this is because we have defined test as
> <include>**/*TestCase.java</include>
>
> and it we want to test these HtmlUnit test cases
> we can start the server and run
>
> mvn -Dtest=*TestBrwser test
>
> which will only run the test cases wish ends with TestBrwser.java
>
> Please give your suggesting and let me know whether I'm implementing this in
> the correct way ?
>
> Regards
> Suho
>
>


This seems like chicken/egg thing, but mainly because the test is
being added together with the UI module. Here are some possible ideas
to overcome this issue :

 - Move tests to a integration test folder
   (e.g /iTest/photark)

 - Use some maven plugin that would handle the integration with the
application server (and manage the lifecycle for example) and run the
tests afterwards (e.g cargo plugin [1])

I hope this can give you some ideas on how to solve the problem, but i
understand it does not have all the details...


[1] http://cargo.codehaus.org/Maven2+plugin
[2] http://cargo.codehaus.org/Tomcat+6.x


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
On 28 April 2010 12:30, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
>
> Updated to Dojo 1.4.2
>
thanks Avidash,

I'm now integrating HtmlUnit with PhotArk.
but when I'm doing so I encountered this problem..

For the HtmlUnit test to pass we should first start the server before
testing.
Otherwise the test case fails saying that it couldn't connect to the server.

the problem is, when automating HtmlUnit testing we cant always start the
server
and if we don't start the server the build will be failing.

here we cannot use

maven.skip.test=true

or smiler alternatives because they will skip all the tests.

Therefore I'm suggesting the to rename these htmlunit test cases as
XXXXTestBrwser
by renaming these the maven-surefire-plugin wont test these test cases.
this is because we have defined test as
<include>**/*TestCase.java</include>

and it we want to test these HtmlUnit test cases
we can start the server and run

mvn -Dtest=*TestBrwser test

which will only run the test cases wish ends with TestBrwser.java

Please give your suggesting and let me know whether I'm implementing this in
the correct way ?

Regards
Suho


> --
> Avdhesh Yadav
> http://www.avdheshyadav.com
>
> On Wed, Apr 28, 2010 at 2:21 AM, Luciano Resende <luckbr1975@gmail.com
>wrote:
>
> > On Tue, Apr 27, 2010 at 12:52 PM, Suhothayan Sriskandarajah
> > <su...@gmail.com> wrote:
> > > On 28 April 2010 01:07, Luciano Resende <lu...@gmail.com> wrote:
> > >
> > >> On Tue, Apr 27, 2010 at 12:18 PM, Suhothayan Sriskandarajah
> > >> <su...@gmail.com> wrote:
> > >> > But in the practical scenario i didn't get any error for IE
> > >> >
> > >> >
> > >>
> > >> What do you mean by that ?  I don't remember when was the last time I
> > >> used IE :) LOL
> > >>
> > >
> > > me too :)
> > > What I meant is that when i was testing these test cases, the test for
> > IE8
> > > failed! (Htmlunit 2.7 and dojo 1.3.2. )
> > > but when i was actually running PhotArk (in Window and )on IE8, it
worked
> > > fine and there were no errors.
> > >
> > > let me know if there are any improvements to be done on these test
cases.
> > > I'll try to fix them.
> > >
> > > Regards
> > > suho
> > >
> >
> > Got it, I'll get dojo update later today.
> >
> > --
> > Luciano Resende
> > http://people.apache.org/~lresende <http://people.apache.org/%7Elresende
>
> > http://twitter.com/lresende1975
> > http://lresende.blogspot.com/
> >

Re: Browser Support

Posted by Avdhesh Yadav <av...@avdheshyadav.com>.
Updated to Dojo 1.4.2

-- 
Avdhesh Yadav
http://www.avdheshyadav.com

On Wed, Apr 28, 2010 at 2:21 AM, Luciano Resende <lu...@gmail.com>wrote:

> On Tue, Apr 27, 2010 at 12:52 PM, Suhothayan Sriskandarajah
> <su...@gmail.com> wrote:
> > On 28 April 2010 01:07, Luciano Resende <lu...@gmail.com> wrote:
> >
> >> On Tue, Apr 27, 2010 at 12:18 PM, Suhothayan Sriskandarajah
> >> <su...@gmail.com> wrote:
> >> > But in the practical scenario i didn't get any error for IE
> >> >
> >> >
> >>
> >> What do you mean by that ?  I don't remember when was the last time I
> >> used IE :) LOL
> >>
> >
> > me too :)
> > What I meant is that when i was testing these test cases, the test for
> IE8
> > failed! (Htmlunit 2.7 and dojo 1.3.2. )
> > but when i was actually running PhotArk (in Window and )on IE8, it worked
> > fine and there were no errors.
> >
> > let me know if there are any improvements to be done on these test cases.
> > I'll try to fix them.
> >
> > Regards
> > suho
> >
>
> Got it, I'll get dojo update later today.
>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>

Re: Browser Support

Posted by Luciano Resende <lu...@gmail.com>.
On Tue, Apr 27, 2010 at 12:52 PM, Suhothayan Sriskandarajah
<su...@gmail.com> wrote:
> On 28 April 2010 01:07, Luciano Resende <lu...@gmail.com> wrote:
>
>> On Tue, Apr 27, 2010 at 12:18 PM, Suhothayan Sriskandarajah
>> <su...@gmail.com> wrote:
>> > But in the practical scenario i didn't get any error for IE
>> >
>> >
>>
>> What do you mean by that ?  I don't remember when was the last time I
>> used IE :) LOL
>>
>
> me too :)
> What I meant is that when i was testing these test cases, the test for IE8
> failed! (Htmlunit 2.7 and dojo 1.3.2. )
> but when i was actually running PhotArk (in Window and )on IE8, it worked
> fine and there were no errors.
>
> let me know if there are any improvements to be done on these test cases.
> I'll try to fix them.
>
> Regards
> suho
>

Got it, I'll get dojo update later today.

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
On 28 April 2010 01:07, Luciano Resende <lu...@gmail.com> wrote:

> On Tue, Apr 27, 2010 at 12:18 PM, Suhothayan Sriskandarajah
> <su...@gmail.com> wrote:
> > But in the practical scenario i didn't get any error for IE
> >
> >
>
> What do you mean by that ?  I don't remember when was the last time I
> used IE :) LOL
>

me too :)
What I meant is that when i was testing these test cases, the test for IE8
failed! (Htmlunit 2.7 and dojo 1.3.2. )
but when i was actually running PhotArk (in Window and )on IE8, it worked
fine and there were no errors.

let me know if there are any improvements to be done on these test cases.
I'll try to fix them.

Regards
suho

>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>

Re: Browser Support

Posted by Luciano Resende <lu...@gmail.com>.
On Tue, Apr 27, 2010 at 12:18 PM, Suhothayan Sriskandarajah
<su...@gmail.com> wrote:
> But in the practical scenario i didn't get any error for IE
>
>

What do you mean by that ?  I don't remember when was the last time I
used IE :) LOL

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
On 27 April 2010 23:47, Luciano Resende <lu...@gmail.com> wrote:

> On Tue, Apr 27, 2010 at 11:13 AM, Avdhesh Yadav <av...@avdheshyadav.com>
> wrote:
> > Hi,
> >
> > I have tested your patch and I think thee is compatibility problem
> between
> > Htmlunit 2.7 and dojo 1.3.2.
> > All your Tested cases passing with dojo 1.4.2(latest stable release).I
> think
> > we should update dojo 1.3.2 with dojo 1.4.2
> >
> > Thoughts ?
> >
>
> +1 for Updating to Dojo 1.4.2...
>
> +1
But in the practical scenario i didn't get any error for IE
Anyway updating that would be very much helpful for testing


> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>

Re: Browser Support

Posted by Luciano Resende <lu...@gmail.com>.
On Tue, Apr 27, 2010 at 11:13 AM, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> Hi,
>
> I have tested your patch and I think thee is compatibility problem between
> Htmlunit 2.7 and dojo 1.3.2.
> All your Tested cases passing with dojo 1.4.2(latest stable release).I think
> we should update dojo 1.3.2 with dojo 1.4.2
>
> Thoughts ?
>

+1 for Updating to Dojo 1.4.2...


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Browser Support

Posted by Avdhesh Yadav <av...@avdheshyadav.com>.
Hi,

I have tested your patch and I think thee is compatibility problem between
Htmlunit 2.7 and dojo 1.3.2.
All your Tested cases passing with dojo 1.4.2(latest stable release).I think
we should update dojo 1.3.2 with dojo 1.4.2

Thoughts ?

-- 
Avdhesh Yadav
http://www.avdheshyadav.com



On Sat, Apr 17, 2010 at 9:51 AM, Suhothayan Sriskandarajah <
suhothayan@gmail.com> wrote:

> On 16 April 2010 23:44, Luciano Resende <lu...@gmail.com> wrote:
>
> > On Fri, Apr 16, 2010 at 8:07 AM, Suhothayan Sriskandarajah
> > <su...@gmail.com> wrote:
> > > On 16 April 2010 18:49, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> > >
> > >> Hi,
> > >>
> > >> hum...Please attach the test cases so that others can look into this
> > issue.
> > >>
> > >>
> > >> hi,
> > >
> > > this is a sample one to check whether that Galley is being displayed.
> > >
> > >
> >
> > So, how about using base class where you have all necessary testes
> > defined, and then a Test Case for each browser, where you actual setup
> > the htmlUnit for a given browser ?
> >
> > Something along the lines of the structure below :
> >
> > Class BaseBrowserTest {
> >
> >   protected static WebClient webClient;
> >
> >   @Test
> >   public void testGallery() {
> >     ....
> >  }
> >
> >   @Test
> >   public void testAlbum() {
> >
> >   }
> >
> >   @Test
> >   public void testAdmin() {
> >
> >   }
> >
> >  ....
> >
> > }
> >
> >
> > Class Firefox3BrowserTest {
> >
> >   @BeforeClass
> >   public static void setup() {
> >       webClient = new WebClient(BrowserVersion.FIREFOX_3);
> >  }
> >
> > }
> >
> >
> > As for how you are testing, I guess we might want to check if some of
> > the dynamic content has also been loaded (e.g thumbnails for albums, a
> > image for a album, etc) as this is what tend to fail when a backend
> > service is not working properly.
> >
> > Thanks for the help,
>  yes you are right, i have written test tor some dynamic constant as well,
> I only sent the above code since the error is even occurring at the static
> stage (even before looking in to dynamic contant).
> I have not finished all the test cases, after finishing them and modifying
> according to the proper format you have suggested. i'll send them to the ML
>
> Regards
> Suho
>
> >
> > --
> > Luciano Resende
> > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende><
> http://people.apache.org/%7Elresende>
> > http://twitter.com/lresende1975
> > http://lresende.blogspot.com/
> >
>

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
On 16 April 2010 23:44, Luciano Resende <lu...@gmail.com> wrote:

> On Fri, Apr 16, 2010 at 8:07 AM, Suhothayan Sriskandarajah
> <su...@gmail.com> wrote:
> > On 16 April 2010 18:49, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> >
> >> Hi,
> >>
> >> hum...Please attach the test cases so that others can look into this
> issue.
> >>
> >>
> >> hi,
> >
> > this is a sample one to check whether that Galley is being displayed.
> >
> >
>
> So, how about using base class where you have all necessary testes
> defined, and then a Test Case for each browser, where you actual setup
> the htmlUnit for a given browser ?
>
> Something along the lines of the structure below :
>
> Class BaseBrowserTest {
>
>   protected static WebClient webClient;
>
>   @Test
>   public void testGallery() {
>     ....
>  }
>
>   @Test
>   public void testAlbum() {
>
>   }
>
>   @Test
>   public void testAdmin() {
>
>   }
>
>  ....
>
> }
>
>
> Class Firefox3BrowserTest {
>
>   @BeforeClass
>   public static void setup() {
>       webClient = new WebClient(BrowserVersion.FIREFOX_3);
>  }
>
> }
>
>
> As for how you are testing, I guess we might want to check if some of
> the dynamic content has also been loaded (e.g thumbnails for albums, a
> image for a album, etc) as this is what tend to fail when a backend
> service is not working properly.
>
> Thanks for the help,
 yes you are right, i have written test tor some dynamic constant as well,
I only sent the above code since the error is even occurring at the static
stage (even before looking in to dynamic contant).
I have not finished all the test cases, after finishing them and modifying
according to the proper format you have suggested. i'll send them to the ML

Regards
Suho

>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>

Re: Browser Support

Posted by Luciano Resende <lu...@gmail.com>.
On Fri, Apr 16, 2010 at 8:07 AM, Suhothayan Sriskandarajah
<su...@gmail.com> wrote:
> On 16 April 2010 18:49, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
>
>> Hi,
>>
>> hum...Please attach the test cases so that others can look into this issue.
>>
>>
>> hi,
>
> this is a sample one to check whether that Galley is being displayed.
>
>

So, how about using base class where you have all necessary testes
defined, and then a Test Case for each browser, where you actual setup
the htmlUnit for a given browser ?

Something along the lines of the structure below :

Class BaseBrowserTest {

   protected static WebClient webClient;

   @Test
   public void testGallery() {
     ....
  }

   @Test
   public void testAlbum() {

   }

   @Test
   public void testAdmin() {

   }

  ....

}


Class Firefox3BrowserTest {

   @BeforeClass
   public static void setup() {
      webClient = new WebClient(BrowserVersion.FIREFOX_3);
  }

}


As for how you are testing, I guess we might want to check if some of
the dynamic content has also been loaded (e.g thumbnails for albums, a
image for a album, etc) as this is what tend to fail when a backend
service is not working properly.


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
On 16 April 2010 18:49, Avdhesh Yadav <av...@avdheshyadav.com> wrote:

> Hi,
>
> hum...Please attach the test cases so that others can look into this issue.
>
>
> hi,

this is a sample one to check whether that Galley is being displayed.


package org.apache.photark.ui.admin;


import static org.junit.Assert.*;
import java.util.List;
import junit.framework.Assert;
import net.sourceforge.htmlunit.corejs.javascript.EcmaError;

import org.apache.photark.filesystem.impl.GalleryImpl;
import org.apache.photark.services.album.Album;
import org.apache.photark.services.gallery.Gallery;
import org.junit.BeforeClass;
import org.junit.Test;

import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.DomNodeList;
import com.gargoylesoftware.htmlunit.html.HtmlAnchor;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlImage;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlTable;
import com.gargoylesoftware.htmlunit.html.HtmlTableCell;
import com.gargoylesoftware.htmlunit.html.HtmlTableRow;




public class adminTestCase {

    @Test
    public void galleryPageF3() throws Exception {
        final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
        final HtmlPage page = webClient.getPage("
http://localhost:8080/photark/");

        final String pageAsXml = page.asXml();
        assertTrue(pageAsXml.contains("<a
href=\"javascript:displayGallery()\"
onmouseover=\"document.index.src=index_on.src\"
onmouseout=\"document.index.src=index_off.src\"
onmousedown=\"beforeClick();\">"));
        assertTrue(pageAsXml.contains("<body onload=\"initGallery()\">"));

        final String pageAsText = page.asText();
        assertTrue(pageAsText.contains("Apache PhotArk Gallery"));

    }

    @Test
    public void galleryPageIE7() throws Exception {
        final WebClient webClient = new
WebClient(BrowserVersion.INTERNET_EXPLORER_7);
        final HtmlPage page = webClient.getPage("
http://localhost:8080/photark/");

        final String pageAsXml = page.asXml();
        assertTrue(pageAsXml.contains("<a
href=\"javascript:displayGallery()\"
onmouseover=\"document.index.src=index_on.src\"
onmouseout=\"document.index.src=index_off.src\"
onmousedown=\"beforeClick();\">"));
        assertTrue(pageAsXml.contains("<body onload=\"initGallery()\">"));

        final String pageAsText = page.asText();
        assertTrue(pageAsText.contains("Apache PhotArk Gallery"));

    }

    @Test
    public void galleryPageIE8() throws Exception {// the error occurred
here
        final WebClient webClient = new
WebClient(BrowserVersion.INTERNET_EXPLORER_8);
      //  try {
            final HtmlPage page = webClient.getPage("
http://localhost:8080/photark/");
            final String pageAsXml = page.asXml();
            assertTrue(pageAsXml.contains("<a
href=\"javascript:displayGallery()\"
onmouseover=\"document.index.src=index_on.src\"
onmouseout=\"document.index.src=index_off.src\"
onmousedown=\"beforeClick();\">"));
            assertTrue(pageAsXml.contains("<body
onload=\"initGallery()\">"));

            final String pageAsText = page.asText();
            assertTrue(pageAsText.contains("Apache PhotArk Gallery"));

     /*  } catch (Exception e) {
            if(e.toString().contains("TypeError: Cannot call method
\"toLowerCase\" of undefined (http://localhost:8080/photark/dojo/dojo.js#16
)")){
                System.out.println(e);
            }else
                throw e;
        }*/

    }
  }



> --
> Avdhesh Yadav
> http://www.avdheshyadav.com
>
> On Fri, Apr 16, 2010 at 5:53 PM, Suhothayan Sriskandarajah <
> suhothayan@gmail.com> wrote:
>
> > hi,
> > I'm now in the process of writing HtmlUnit test to PhotArk.
> > I'm writing test cases to Firefox 3, IE 7 and IE 8.
> >
> > when I'm writing the test case for IE8(only for IE8) the following error
> > occurred.
> > i think this is a incompatibility issue with dojo.
> > but when i directly test PhotArk on IE8, i couldn't find any issues.
> > what shall i do shall i just catch this exception and ignore it ?
> >
> > thoughts?
> >
> >
> >
> > ======= EXCEPTION START ========
> > EcmaError: lineNumber=[16] column=[0] lineSource=[<no source>]
> > name=[TypeError] sourceName=[http://localhost:8080/photark/dojo/dojo.js]
> > message=[TypeError: Cannot call method "toLowerCase" of undefined (
> > http://localhost:8080/photark/dojo/dojo.js#16)]
> > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call
> > method
> > "toLowerCase" of undefined (
> http://localhost:8080/photark/dojo/dojo.js#16)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527)
> >    at
> > net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:980)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:353)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:215)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718)
> >    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> > Source)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676)
> >    at
> >
> >
> org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
> >    at
> > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
> >    at
> >
> org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
> >    at
> >
> >
> org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
> >    at
> >
> >
> org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
> >    at
> > org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
> >    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
> >    at
> > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
> >    at
> > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
> >    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
> >    at
> > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420)
> >    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
> >    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:360)
> >    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345)
> >    at
> >
> >
> org.apache.photark.ui.admin.adminTestCase.galleryPageAlbumsIE8(adminTestCase.java:154)
> >    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:597)
> >    at
> >
> >
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> >    at
> >
> >
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> >    at
> >
> >
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> >    at
> >
> >
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> >    at
> >
> >
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> >    at
> >
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> >    at
> >
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
> >    at
> >
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
> >    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
> >    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
> >    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
> >    at
> >
> >
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> >    at
> >
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> >    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> > Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError:
> TypeError:
> > Cannot call method "toLowerCase" of undefined (
> > http://localhost:8080/photark/dojo/dojo.js#16)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
> >    ... 54 more
> > Enclosed exception:
> > net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot
> > call
> > method "toLowerCase" of undefined (
> > http://localhost:8080/photark/dojo/dojo.js#16)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)
> >    at script(http://localhost:8080/photark/dojo/dojo.js:16)
> >    at script(http://localhost:8080/photark/dojo/dojo.js:16)
> >    at script(http://localhost:8080/photark/dojo/dojo.js:16)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
> >    at
> > net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
> >    at
> >
> >
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:980)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:353)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:215)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718)
> >    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> > Source)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676)
> >    at
> >
> >
> org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
> >    at
> > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
> >    at
> >
> org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
> >    at
> >
> >
> org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
> >    at
> >
> >
> org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
> >    at
> > org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
> >    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
> >    at
> > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
> >    at
> > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
> >    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
> >    at
> > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
> >    at
> >
> >
> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420)
> >    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
> >    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:360)
> >    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345)
> >    at
> >
> >
> org.apache.photark.ui.admin.adminTestCase.galleryPageAlbumsIE8(adminTestCase.java:154)
> >    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:597)
> >    at
> >
> >
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> >    at
> >
> >
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> >    at
> >
> >
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> >    at
> >
> >
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> >    at
> >
> >
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> >    at
> >
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> >    at
> >
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
> >    at
> >
> >
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
> >    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
> >    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
> >    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
> >    at
> >
> >
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> >    at
> >
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> >    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> >    at
> >
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> > ======= EXCEPTION END ========
> >
> >
> > Regards
> > suho
> >
> >
> >
> > On 7 April 2010 12:05, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> >
> > > Good idea..I will try to write some htmlunit testcases this weekend.
> > >
> > > On Wed, Apr 7, 2010 at 11:55 AM, Luciano Resende <luckbr1975@gmail.com
> > > >wrote:
> > >
> > > > On Tuesday, April 6, 2010, Avdhesh Yadav <av...@avdheshyadav.com>
> wrote:
> > > > > Photark is supposed to work on most of popular browsers.But there
> is
> > > > always
> > > > > a concern that it may not work well on some browsers.I think its
> not
> > > > > feasible to support all the browsers.We should test photark on two
> > > > popular
> > > > > browsers before commiting anything releated to UI in SVN.
> > > > >
> > > > > 1. Fire Fox
> > > > > 2. IE
> > > > > 3. Chrome(may be)
> > > > >
> > > > > Thoughts ?
> > > > >
> > > > > --
> > > >
> > > > How about we create some unit tests using HtmlUnit ? It seems to have
> > > > capability to emulate the differente type of browsers and even
> > > > different releases .... This shuld make life easier for those that
> > > > don't have access to all browser versions ( e.g. IE )
> > > >
> > > > --
> > > > Luciano Resende
> > > > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende>
> <http://people.apache.org/%7Elresende>
> > <http://people.apache.org/%7Elresende><
> > > http://people.apache.org/%7Elresende>
> > > > http://twitter.com/lresende1975
> > > > http://lresende.blogspot.com/
> > > >
> > >
> > >
> > >
> > > --
> > > Avdhesh Yadav
> > > http://www.avdheshyadav.com
> > >
> >
>

Re: Browser Support

Posted by Avdhesh Yadav <av...@avdheshyadav.com>.
Hi,

hum...Please attach the test cases so that others can look into this issue.


-- 
Avdhesh Yadav
http://www.avdheshyadav.com

On Fri, Apr 16, 2010 at 5:53 PM, Suhothayan Sriskandarajah <
suhothayan@gmail.com> wrote:

> hi,
> I'm now in the process of writing HtmlUnit test to PhotArk.
> I'm writing test cases to Firefox 3, IE 7 and IE 8.
>
> when I'm writing the test case for IE8(only for IE8) the following error
> occurred.
> i think this is a incompatibility issue with dojo.
> but when i directly test PhotArk on IE8, i couldn't find any issues.
> what shall i do shall i just catch this exception and ignore it ?
>
> thoughts?
>
>
>
> ======= EXCEPTION START ========
> EcmaError: lineNumber=[16] column=[0] lineSource=[<no source>]
> name=[TypeError] sourceName=[http://localhost:8080/photark/dojo/dojo.js]
> message=[TypeError: Cannot call method "toLowerCase" of undefined (
> http://localhost:8080/photark/dojo/dojo.js#16)]
> com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call
> method
> "toLowerCase" of undefined (http://localhost:8080/photark/dojo/dojo.js#16)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527)
>    at
> net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:980)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:353)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:215)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718)
>    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676)
>    at
>
> org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
>    at
> org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
>    at
> org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
>    at
>
> org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
>    at
>
> org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
>    at
> org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
>    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
>    at
> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
>    at
> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
>    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
>    at
> com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
>    at
>
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
>    at
>
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
>    at
>
> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420)
>    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
>    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:360)
>    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345)
>    at
>
> org.apache.photark.ui.admin.adminTestCase.galleryPageAlbumsIE8(adminTestCase.java:154)
>    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:597)
>    at
>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>    at
>
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>    at
>
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>    at
>
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>    at
>
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>    at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>    at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
>    at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
>    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>    at
>
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>    at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
>    at
>
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
>    at
>
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError:
> Cannot call method "toLowerCase" of undefined (
> http://localhost:8080/photark/dojo/dojo.js#16)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
>    ... 54 more
> Enclosed exception:
> net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot
> call
> method "toLowerCase" of undefined (
> http://localhost:8080/photark/dojo/dojo.js#16)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)
>    at script(http://localhost:8080/photark/dojo/dojo.js:16)
>    at script(http://localhost:8080/photark/dojo/dojo.js:16)
>    at script(http://localhost:8080/photark/dojo/dojo.js:16)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
>    at
> net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
>    at
>
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
>    at
>
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:980)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:353)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:215)
>    at
>
> com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718)
>    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676)
>    at
>
> org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
>    at
> org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
>    at
> org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
>    at
>
> org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
>    at
>
> org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
>    at
> org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
>    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
>    at
> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
>    at
> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
>    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
>    at
> com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
>    at
>
> com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
>    at
>
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
>    at
>
> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
>    at
>
> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420)
>    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
>    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:360)
>    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345)
>    at
>
> org.apache.photark.ui.admin.adminTestCase.galleryPageAlbumsIE8(adminTestCase.java:154)
>    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:597)
>    at
>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>    at
>
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>    at
>
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>    at
>
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>    at
>
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>    at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>    at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
>    at
>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
>    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>    at
>
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>    at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
>    at
>
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
>    at
>
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>    at
>
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> ======= EXCEPTION END ========
>
>
> Regards
> suho
>
>
>
> On 7 April 2010 12:05, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
>
> > Good idea..I will try to write some htmlunit testcases this weekend.
> >
> > On Wed, Apr 7, 2010 at 11:55 AM, Luciano Resende <luckbr1975@gmail.com
> > >wrote:
> >
> > > On Tuesday, April 6, 2010, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> > > > Photark is supposed to work on most of popular browsers.But there is
> > > always
> > > > a concern that it may not work well on some browsers.I think its not
> > > > feasible to support all the browsers.We should test photark on two
> > > popular
> > > > browsers before commiting anything releated to UI in SVN.
> > > >
> > > > 1. Fire Fox
> > > > 2. IE
> > > > 3. Chrome(may be)
> > > >
> > > > Thoughts ?
> > > >
> > > > --
> > >
> > > How about we create some unit tests using HtmlUnit ? It seems to have
> > > capability to emulate the differente type of browsers and even
> > > different releases .... This shuld make life easier for those that
> > > don't have access to all browser versions ( e.g. IE )
> > >
> > > --
> > > Luciano Resende
> > > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende>
> <http://people.apache.org/%7Elresende><
> > http://people.apache.org/%7Elresende>
> > > http://twitter.com/lresende1975
> > > http://lresende.blogspot.com/
> > >
> >
> >
> >
> > --
> > Avdhesh Yadav
> > http://www.avdheshyadav.com
> >
>

Re: Browser Support

Posted by Suhothayan Sriskandarajah <su...@gmail.com>.
hi,
I'm now in the process of writing HtmlUnit test to PhotArk.
I'm writing test cases to Firefox 3, IE 7 and IE 8.

when I'm writing the test case for IE8(only for IE8) the following error
occurred.
i think this is a incompatibility issue with dojo.
but when i directly test PhotArk on IE8, i couldn't find any issues.
what shall i do shall i just catch this exception and ignore it ?

thoughts?



======= EXCEPTION START ========
EcmaError: lineNumber=[16] column=[0] lineSource=[<no source>]
name=[TypeError] sourceName=[http://localhost:8080/photark/dojo/dojo.js]
message=[TypeError: Cannot call method "toLowerCase" of undefined (
http://localhost:8080/photark/dojo/dojo.js#16)]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method
"toLowerCase" of undefined (http://localhost:8080/photark/dojo/dojo.js#16)
    at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527)
    at
net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425)
    at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:980)
    at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:353)
    at
com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:215)
    at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676)
    at
org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
    at
org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
    at
org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
    at
org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
    at
org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
    at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
    at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
    at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
    at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
    at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
    at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:360)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345)
    at
org.apache.photark.ui.admin.adminTestCase.galleryPageAlbumsIE8(adminTestCase.java:154)
    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:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError:
Cannot call method "toLowerCase" of undefined (
http://localhost:8080/photark/dojo/dojo.js#16)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
    at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)
    at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
    at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
    at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
    at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416)
    at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
    ... 54 more
Enclosed exception:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call
method "toLowerCase" of undefined (
http://localhost:8080/photark/dojo/dojo.js#16)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
    at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1515)
    at script(http://localhost:8080/photark/dojo/dojo.js:16)
    at script(http://localhost:8080/photark/dojo/dojo.js:16)
    at script(http://localhost:8080/photark/dojo/dojo.js:16)
    at
net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:845)
    at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
    at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:264)
    at
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
    at
net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
    at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:416)
    at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:521)
    at
net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    at
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425)
    at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:980)
    at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:353)
    at
com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:215)
    at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676)
    at
org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
    at
org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
    at
org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
    at
org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
    at
org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
    at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
    at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
    at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
    at
com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
    at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
    at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
    at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:360)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345)
    at
org.apache.photark.ui.admin.adminTestCase.galleryPageAlbumsIE8(adminTestCase.java:154)
    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:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
======= EXCEPTION END ========


Regards
suho



On 7 April 2010 12:05, Avdhesh Yadav <av...@avdheshyadav.com> wrote:

> Good idea..I will try to write some htmlunit testcases this weekend.
>
> On Wed, Apr 7, 2010 at 11:55 AM, Luciano Resende <luckbr1975@gmail.com
> >wrote:
>
> > On Tuesday, April 6, 2010, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> > > Photark is supposed to work on most of popular browsers.But there is
> > always
> > > a concern that it may not work well on some browsers.I think its not
> > > feasible to support all the browsers.We should test photark on two
> > popular
> > > browsers before commiting anything releated to UI in SVN.
> > >
> > > 1. Fire Fox
> > > 2. IE
> > > 3. Chrome(may be)
> > >
> > > Thoughts ?
> > >
> > > --
> >
> > How about we create some unit tests using HtmlUnit ? It seems to have
> > capability to emulate the differente type of browsers and even
> > different releases .... This shuld make life easier for those that
> > don't have access to all browser versions ( e.g. IE )
> >
> > --
> > Luciano Resende
> > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende><
> http://people.apache.org/%7Elresende>
> > http://twitter.com/lresende1975
> > http://lresende.blogspot.com/
> >
>
>
>
> --
> Avdhesh Yadav
> http://www.avdheshyadav.com
>

Re: Browser Support

Posted by Avdhesh Yadav <av...@avdheshyadav.com>.
Good idea..I will try to write some htmlunit testcases this weekend.

On Wed, Apr 7, 2010 at 11:55 AM, Luciano Resende <lu...@gmail.com>wrote:

> On Tuesday, April 6, 2010, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> > Photark is supposed to work on most of popular browsers.But there is
> always
> > a concern that it may not work well on some browsers.I think its not
> > feasible to support all the browsers.We should test photark on two
> popular
> > browsers before commiting anything releated to UI in SVN.
> >
> > 1. Fire Fox
> > 2. IE
> > 3. Chrome(may be)
> >
> > Thoughts ?
> >
> > --
>
> How about we create some unit tests using HtmlUnit ? It seems to have
> capability to emulate the differente type of browsers and even
> different releases .... This shuld make life easier for those that
> don't have access to all browser versions ( e.g. IE )
>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>



-- 
Avdhesh Yadav
http://www.avdheshyadav.com

Re: Browser Support

Posted by Luciano Resende <lu...@gmail.com>.
On Tuesday, April 6, 2010, Avdhesh Yadav <av...@avdheshyadav.com> wrote:
> Photark is supposed to work on most of popular browsers.But there is always
> a concern that it may not work well on some browsers.I think its not
> feasible to support all the browsers.We should test photark on two popular
> browsers before commiting anything releated to UI in SVN.
>
> 1. Fire Fox
> 2. IE
> 3. Chrome(may be)
>
> Thoughts ?
>
> --

How about we create some unit tests using HtmlUnit ? It seems to have
capability to emulate the differente type of browsers and even
different releases .... This shuld make life easier for those that
don't have access to all browser versions ( e.g. IE )

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/