Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

CUIT Data driven test. How do I automate the test using .csv file when the Name property (of the SearchProperties) was not learned during recording.

$
0
0

Hi, I am new to MS CUIT.

I have this challenge where I cannot data drive a test because the name property appears to have not been learned during recording. So then this line of code:

this.UIMap.UITutorialAppWindow.UIItemWindow4.UIItemEdit1.SearchProperties[WinEdit.Propertynames.Name] = TestContext.DataRow["Name"].ToString();

does not work accordingly.

The test itself iterates same number of times as the number of rows in the .csv file; I suppose it indicates that part of the job is done? However, not being able to drive the test with the "Name" column entries obtained from the .csv file, 'feeding' those to the "UIItemEdit1" seems to be the issue here.

I've tried adding the Name property in the Search Properties of the element in question, didn't work! Tried handcoding it with the help of someone who is experienced in MS CUIT and C#, still hit brick walls.

Any Ideas? What am I getting wrong?


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>