Home > Net >  Automated testing, access to a third party Windows application data, I try to debug to this position
Automated testing, access to a third party Windows application data, I try to debug to this position

Time:09-18

Using TestStack;

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Private TestStack. White. Application Application {get; set; }
Private Window Window {get; set; }


Private void button2_Click (object sender, EventArgs e)
{
Var listview=window. Get (" List1 ");
If (listview. Rows. Count==30)
{
Foreach (ListViewRow row in listview. Rows)
{
//the debugger already came to this place, couldn't find the inside of the listview data values, justice?
String DDD=row. Cells [3]. The Text;
}
}
}


Using teststack. White automated testing, access to a third party Windows application data, listview how many rows to find out, have to go to, don't actually get the inside of the listview data, pain, poor level

In addition, there are friends can recommend other source code for reference? I is applied to automatic control of a third party Windows application, including access to data,
Thank you,

CodePudding user response:

Don't know whether to put in the wrong place?

CodePudding user response:

Use what tools?

CodePudding user response:

Tools: teststack

I am after the search to this article: https://www.dazhuanlan.com/2019/09/04/8c18f8874287/

Then try to study, for the first time

CodePudding user response:

No one understand? Still I did not say what

CodePudding user response:

Win32 or.net?

CodePudding user response:

reference 5 floor icoolno1 reply:
is a win32 or. Net?


The.net test automation tool

https://docs.microsoft.com/zh-cn/dotnet/framework/ui-automation/using-ui-automation-for-automated-testing

CodePudding user response:

Is the.net application

CodePudding user response:

Can you really can't help me,

Hope I have a chance to study, now can only walk around,

CodePudding user response:

If (listview. Rows. Count==30)//to & gt; 0, see how the data?

CodePudding user response:

Also not line, string DDD=row. Cells [3]. The Text;
DDD has a value of ""

CodePudding user response:

I have to give up study, solve problems, not tried so depressed,
  •  Tags:  
  • C#