coded ui params method doesn't work -


i attempting automate entering in values on html page using microsoft's coded ui. when use normal method (i.e. hardcoded values gotten through action recording) works fine if use params method , pass explicit value doesn't work @ all; worse yet, test not fail @ point, seems skip on step. i'm hoping can give me idea of i'm missing (if anything) when set data driven aspect of test or if there's else can try out. erik

here data connection string test [deploymentitem("pfchecks\data\company.xml"), datasource("microsoft.visualstudio.testtools.datasource.xml", "|datadirectory|\company.xml", "iteration", dataaccessmethod.sequential), testmethod]

and line of code trying use params method set value on field. usenterssn.methodusersyncenterssnparams.uissnoedittext = "012831444";

there 1 object in method used, uissnoedittext object. object name correct in ui map , matches named on web page itself. params method fails work if explicity set value (as above) or if use testcontext.datarow method. ideas welcome , let me know if can provide further information answer question. erik

three things occur.

(1) assignment above in correct place? uimap...xxxparams.yyyedit = ...; should before call of method uses it.

(2) can use visual studio debugger set breakpoints , step through coded ui test. (you need right-click in codeduitest.cs file , select debug tests.

(3) comment clarifying question. need have both assignment , call. general form uimap...xxxparams.yyyedit = ...; uimap...xxx();. method call reads values ...params, default value there value entered when recording test. assignment overwrites default value of ...params item.

there discussion of data driven testing linked http://blogs.msdn.com/b/mathew_aniyan/archive/2010/02/11/content-index-for-coded-ui-test.aspx , many other items coded ui tests.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -