You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2010/02/17 01:53:49 UTC

Selenium Testing - Dealing with unstable wicket path

I'm using the following xpath wtih regex..

and this works..

"xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"

but this doesn't

"xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"

any idea why?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Selenium Testing - Dealing with unstable wicket path

Posted by Douglas Ferguson <do...@douglasferguson.us>.
We have tons of unit tests and they are built in.
But for selenium this would not work, how can a web browser inspect your runtime object to determine correctness?

Douglas Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
________________________________________
From: Martin Makundi [martin.makundi@koodaripalvelut.com]
Sent: Wednesday, February 17, 2010 12:45 AM
To: users@wicket.apache.org
Subject: Re: Selenium Testing - Dealing with unstable wicket path

Hi!

Yes. We have found that building testability and acceptance tests into
the application is a good approach. Maybe it does not work for your
situation.

**
Martin

2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
> yeah.. but if you are running functional tests against packaged software then verifications will be happening outside of the applications's vm.
> the stuff you sent, depends on overloading application objects in order to make hem testable in memory.
>
> Douglas Ferguson
>
> mobile: 512.293.7279
> office/fax: 512.462.0408
> skype: stillrecording
> aim:   DaAmericanRuse
>
> -
>
> http://www.linkedin.com/in/douglasferguson
> http://www.myspace.com/douglasferguson
> http://www.douglasferguson.us/
> http://www.distilleryrecords.com/
> http://www.stillrecording.com/
>
> Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
> ________________________________________
> From: Martin Makundi [martin.makundi@koodaripalvelut.com]
> Sent: Wednesday, February 17, 2010 12:11 AM
> To: users@wicket.apache.org
> Subject: Re: Selenium Testing - Dealing with unstable wicket path
>
> Hi!
>
> You can run selenium tests with junit.
>
> http://www.junit.org/node/23
>
> **
> Martin
>
> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>> Hmm.. How would the example you sent apply to selenium tests?
>>
>> That seems like a unit test approach.
>>
>> Douglas Ferguson
>>
>> mobile: 512.293.7279
>> office/fax: 512.462.0408
>> skype: stillrecording
>> aim:   DaAmericanRuse
>>
>> -
>>
>> http://www.linkedin.com/in/douglasferguson
>> http://www.myspace.com/douglasferguson
>> http://www.douglasferguson.us/
>> http://www.distilleryrecords.com/
>> http://www.stillrecording.com/
>>
>> Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
>> ________________________________________
>> From: Martin Makundi [martin.makundi@koodaripalvelut.com]
>> Sent: Tuesday, February 16, 2010 9:55 PM
>> To: users@wicket.apache.org
>> Subject: Re: Selenium Testing - Dealing with unstable wicket path
>>
>> Hi!
>>
>> Maybe you can generate the path from the actual path?
>>
>> http://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html
>>
>> **
>> Martin
>>
>> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>>> I'm using the following xpath wtih regex..
>>>
>>> and this works..
>>>
>>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"
>>>
>>> but this doesn't
>>>
>>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"
>>>
>>> any idea why?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Selenium Testing - Dealing with unstable wicket path

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Yes. We have found that building testability and acceptance tests into
the application is a good approach. Maybe it does not work for your
situation.

**
Martin

2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
> yeah.. but if you are running functional tests against packaged software then verifications will be happening outside of the applications's vm.
> the stuff you sent, depends on overloading application objects in order to make hem testable in memory.
>
> Douglas Ferguson
>
> mobile: 512.293.7279
> office/fax: 512.462.0408
> skype: stillrecording
> aim:   DaAmericanRuse
>
> -
>
> http://www.linkedin.com/in/douglasferguson
> http://www.myspace.com/douglasferguson
> http://www.douglasferguson.us/
> http://www.distilleryrecords.com/
> http://www.stillrecording.com/
>
> Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
> ________________________________________
> From: Martin Makundi [martin.makundi@koodaripalvelut.com]
> Sent: Wednesday, February 17, 2010 12:11 AM
> To: users@wicket.apache.org
> Subject: Re: Selenium Testing - Dealing with unstable wicket path
>
> Hi!
>
> You can run selenium tests with junit.
>
> http://www.junit.org/node/23
>
> **
> Martin
>
> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>> Hmm.. How would the example you sent apply to selenium tests?
>>
>> That seems like a unit test approach.
>>
>> Douglas Ferguson
>>
>> mobile: 512.293.7279
>> office/fax: 512.462.0408
>> skype: stillrecording
>> aim:   DaAmericanRuse
>>
>> -
>>
>> http://www.linkedin.com/in/douglasferguson
>> http://www.myspace.com/douglasferguson
>> http://www.douglasferguson.us/
>> http://www.distilleryrecords.com/
>> http://www.stillrecording.com/
>>
>> Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
>> ________________________________________
>> From: Martin Makundi [martin.makundi@koodaripalvelut.com]
>> Sent: Tuesday, February 16, 2010 9:55 PM
>> To: users@wicket.apache.org
>> Subject: Re: Selenium Testing - Dealing with unstable wicket path
>>
>> Hi!
>>
>> Maybe you can generate the path from the actual path?
>>
>> http://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html
>>
>> **
>> Martin
>>
>> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>>> I'm using the following xpath wtih regex..
>>>
>>> and this works..
>>>
>>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"
>>>
>>> but this doesn't
>>>
>>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"
>>>
>>> any idea why?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Selenium Testing - Dealing with unstable wicket path

Posted by Douglas Ferguson <do...@douglasferguson.us>.
yeah.. but if you are running functional tests against packaged software then verifications will be happening outside of the applications's vm.
the stuff you sent, depends on overloading application objects in order to make hem testable in memory.

Douglas Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
________________________________________
From: Martin Makundi [martin.makundi@koodaripalvelut.com]
Sent: Wednesday, February 17, 2010 12:11 AM
To: users@wicket.apache.org
Subject: Re: Selenium Testing - Dealing with unstable wicket path

Hi!

You can run selenium tests with junit.

http://www.junit.org/node/23

**
Martin

2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
> Hmm.. How would the example you sent apply to selenium tests?
>
> That seems like a unit test approach.
>
> Douglas Ferguson
>
> mobile: 512.293.7279
> office/fax: 512.462.0408
> skype: stillrecording
> aim:   DaAmericanRuse
>
> -
>
> http://www.linkedin.com/in/douglasferguson
> http://www.myspace.com/douglasferguson
> http://www.douglasferguson.us/
> http://www.distilleryrecords.com/
> http://www.stillrecording.com/
>
> Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
> ________________________________________
> From: Martin Makundi [martin.makundi@koodaripalvelut.com]
> Sent: Tuesday, February 16, 2010 9:55 PM
> To: users@wicket.apache.org
> Subject: Re: Selenium Testing - Dealing with unstable wicket path
>
> Hi!
>
> Maybe you can generate the path from the actual path?
>
> http://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html
>
> **
> Martin
>
> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>> I'm using the following xpath wtih regex..
>>
>> and this works..
>>
>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"
>>
>> but this doesn't
>>
>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"
>>
>> any idea why?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Selenium Testing - Dealing with unstable wicket path

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
More:

http://www.junit.org/node/23

2010/2/17 Martin Makundi <ma...@koodaripalvelut.com>:
> Hi!
>
> You can run selenium tests with junit.
>
> http://www.junit.org/node/23
>
> **
> Martin
>
> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>> Hmm.. How would the example you sent apply to selenium tests?
>>
>> That seems like a unit test approach.
>>
>> Douglas Ferguson
>>
>> mobile: 512.293.7279
>> office/fax: 512.462.0408
>> skype: stillrecording
>> aim:   DaAmericanRuse
>>
>> -
>>
>> http://www.linkedin.com/in/douglasferguson
>> http://www.myspace.com/douglasferguson
>> http://www.douglasferguson.us/
>> http://www.distilleryrecords.com/
>> http://www.stillrecording.com/
>>
>> Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
>> ________________________________________
>> From: Martin Makundi [martin.makundi@koodaripalvelut.com]
>> Sent: Tuesday, February 16, 2010 9:55 PM
>> To: users@wicket.apache.org
>> Subject: Re: Selenium Testing - Dealing with unstable wicket path
>>
>> Hi!
>>
>> Maybe you can generate the path from the actual path?
>>
>> http://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html
>>
>> **
>> Martin
>>
>> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>>> I'm using the following xpath wtih regex..
>>>
>>> and this works..
>>>
>>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"
>>>
>>> but this doesn't
>>>
>>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"
>>>
>>> any idea why?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Selenium Testing - Dealing with unstable wicket path

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

You can run selenium tests with junit.

http://www.junit.org/node/23

**
Martin

2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
> Hmm.. How would the example you sent apply to selenium tests?
>
> That seems like a unit test approach.
>
> Douglas Ferguson
>
> mobile: 512.293.7279
> office/fax: 512.462.0408
> skype: stillrecording
> aim:   DaAmericanRuse
>
> -
>
> http://www.linkedin.com/in/douglasferguson
> http://www.myspace.com/douglasferguson
> http://www.douglasferguson.us/
> http://www.distilleryrecords.com/
> http://www.stillrecording.com/
>
> Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
> ________________________________________
> From: Martin Makundi [martin.makundi@koodaripalvelut.com]
> Sent: Tuesday, February 16, 2010 9:55 PM
> To: users@wicket.apache.org
> Subject: Re: Selenium Testing - Dealing with unstable wicket path
>
> Hi!
>
> Maybe you can generate the path from the actual path?
>
> http://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html
>
> **
> Martin
>
> 2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
>> I'm using the following xpath wtih regex..
>>
>> and this works..
>>
>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"
>>
>> but this doesn't
>>
>> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"
>>
>> any idea why?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Selenium Testing - Dealing with unstable wicket path

Posted by Douglas Ferguson <do...@douglasferguson.us>.
Hmm.. How would the example you sent apply to selenium tests?
 
That seems like a unit test approach.

Douglas Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscribe@yahoogroups.com
________________________________________
From: Martin Makundi [martin.makundi@koodaripalvelut.com]
Sent: Tuesday, February 16, 2010 9:55 PM
To: users@wicket.apache.org
Subject: Re: Selenium Testing - Dealing with unstable wicket path

Hi!

Maybe you can generate the path from the actual path?

http://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html

**
Martin

2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
> I'm using the following xpath wtih regex..
>
> and this works..
>
> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"
>
> but this doesn't
>
> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"
>
> any idea why?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Selenium Testing - Dealing with unstable wicket path

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Maybe you can generate the path from the actual path?

http://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html

**
Martin

2010/2/17 Douglas Ferguson <do...@douglasferguson.us>:
> I'm using the following xpath wtih regex..
>
> and this works..
>
> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d')][2]"
>
> but this doesn't
>
> "xpath=//*[fn:matches(@wicketpath,'taskListContainer_taskTable_taskList_\\d_taskContainer_edit')][2]"
>
> any idea why?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org