This question is locked. New answers and comments are not allowed.
Hi,
I'm testing an AJAXified RadGrid on a web page. I want to make sure that sorting works properly. So I've created a coded step that would iterate each row, pool the values from a given column, and compare the list to a sorted sample.
The step passes if I run it right after the initial page load, but when I start clicking grid headers before running my step, that's when it hits the fan.
All my steps that simulate clicking different column headers, do pass. The grid's content is getting updated via AJAX on each click, though. When it's time for my coded step to be executed I have two issues:
(1) the test fails as it seems to be using the initial loaded page content (not the version updated via AJAX), and
(2) I can't debug the code using breakpoints as the debugger gives me the following error: "Unable to apply this change while debugging. File '(snip)\Pages.g.vb' was reloaded. You must revert the change or stop the debugging session."
So it seem like the Pages.g.vb file is regenerated with each AJAX call, but the coded step is bound to the inital version.
How would I fix this scenario?
Regards.
EDIT: This post might better belong to regular Test Studio forum, but it does refer to a Visual Studio 2010 plugin.
I'm testing an AJAXified RadGrid on a web page. I want to make sure that sorting works properly. So I've created a coded step that would iterate each row, pool the values from a given column, and compare the list to a sorted sample.
The step passes if I run it right after the initial page load, but when I start clicking grid headers before running my step, that's when it hits the fan.
All my steps that simulate clicking different column headers, do pass. The grid's content is getting updated via AJAX on each click, though. When it's time for my coded step to be executed I have two issues:
(1) the test fails as it seems to be using the initial loaded page content (not the version updated via AJAX), and
(2) I can't debug the code using breakpoints as the debugger gives me the following error: "Unable to apply this change while debugging. File '(snip)\Pages.g.vb' was reloaded. You must revert the change or stop the debugging session."
So it seem like the Pages.g.vb file is regenerated with each AJAX call, but the coded step is bound to the inital version.
How would I fix this scenario?
Regards.
EDIT: This post might better belong to regular Test Studio forum, but it does refer to a Visual Studio 2010 plugin.