(828) 862-6667

Telerik Blogs



Pop-up Grid Editing Fails: Design for Testing

by Rich Winslow | Oct 08, 2011

Our web application uses pop-up windows to edit a record.  The grid passes a query string with the guid id for the record to be edited, which is a solid way to edit the right record, but introduces testing issues.  The test passes that guid in, but if the database is reloaded, different guids are created and the test will fail.

        http://www.qualitytest.com/StandardEdit.aspx?Op=Edit&Id=9d13be77-8570-467a-a4e4-a35a1330d716

We needed to design a query string parameter that passes in a parameter that can be searched and not rely on a guid when testing.

        http://www.qualitytest.com/StandardEdit.aspx?Op=Edit&Name=TestStandard

It was simple to add a special parameter for testing that allowed our tests to function as the database changed.

Others would suggest adding the ability to save a test with a specific guid, so it could be consistently tested.

 

Comment

  1.    
     
     
      
       

Pop-up Grid Editing Fails: Design for Testing

by Rich Winslow | Oct 08, 2011

Our web application uses pop-up windows to edit a record.  The grid passes a query string with the guid id for the record to be edited, which is a solid way to edit the right record, but introduces testing issues.  The test passes that guid in, but if the database is reloaded, different guids are created and the test will fail.

        http://www.qualitytest.com/StandardEdit.aspx?Op=Edit&Id=9d13be77-8570-467a-a4e4-a35a1330d716

We needed to design a query string parameter that passes in a parameter that can be searched and not rely on a guid when testing.

        http://www.qualitytest.com/StandardEdit.aspx?Op=Edit&Name=TestStandard

It was simple to add a special parameter for testing that allowed our tests to function as the database changed.

Others would suggest adding the ability to save a test with a specific guid, so it could be consistently tested.

 

Comment

  1.    
     
     
      
       















Company Info  |   Contact Us  |   Site Map  |   Terms  |   Privacy Policy  |  

Automated Results Computer Consulting LLC, 222 South Caldwell Street, Brevard, NC 28712 (828) 862-6667