TDD to check the layout

View: New views
3 Messages — Rating Filter:   Alert me  

TDD to check the layout

by shagil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
 
We are going to develop an application which arrange the UI components based on user inputs.
How to write a test to check the layout of the UI? Or just checking the (x,y) position of the component is enough?

Thanks in advance
Shagil



     

[Non-text portions of this message have been removed]


Re: TDD to check the layout

by Mark Levison-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Shagil - What benefit will you derive from testing this? How many bugs will
you miss if you don't test this? If you do test this will your tests become
fragile and break every day due to small changes in the UI?

Cheers
Mark

   *Mark Levison* | Founder and Consultant -
TheAgileConsortium<http://theagileconsortium.com/>| Agile
Editor @ InfoQ <http://www.infoq.com/about.jsp>
Blog <http://www.notesfromatooluser.com/> |
Twitter<http://twitter.com/mlevison>| Office: (613) 761-9821
Recent Entries: Agile Mailing Lists a
Survey<http://www.notesfromatooluser.com/2009/06/agile-mailing-lists.html%20>,
Do You Suspect You Have a Less than Productive Person on Your
Team?<http://www.notesfromatooluser.com/2009/01/do-you-suspect-you-have-a-less-than-productive-person-on-your-team.html>


[Non-text portions of this message have been removed]


RE: TDD to check the layout

by Charlie Poole-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Shagil,

From a unit-test perspective, there are two things to check here...

1) Is the user input being correctly translated to a position
2) Is the saved position used correctly in the display

I'd make sure to test these two aspects of the solution separately.

Charlie

> -----Original Message-----
> From: testdrivendevelopment@...
> [mailto:testdrivendevelopment@...] On Behalf Of shagil
> Sent: Wednesday, October 07, 2009 4:42 AM
> To: testdrivendevelopment@...
> Subject: [TDD] TDD to check the layout
>
> Hi All,
>  
> We are going to develop an application which arrange the UI
> components based on user inputs.
> How to write a test to check the layout of the UI? Or just
> checking the (x,y) position of the component is enough?
>
> Thanks in advance
> Shagil
>
>
>
>      
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>