...that is the Dilemma!
And, yes - this is related to FoxPro - in regards to our current system conversion project of porting it to C#.
I just asked my IT guy here at work (who sits on the desk opposite mine) - what he knew about doing software testing. From what he has heard, in regards to doing Automated type testing - that's mainly for Web/Browser based apps. Since, he figures - it's not so easy to do testing automation of Desktop Apps.
So, I wanted to throw this out to the Hive Mind here. Is there actually tools that allow one to do automated testing for Desktop apps? And, if so - is any of that a kind of open-source thing? Cause - I really don't think the co. where I work would actually pay for testing automation tools.
Anyway - that's it for now...
L8r G8rs, -K
Kurt,
I guess it depends on the type of testing.
Try these out:
https://github.com/VFPX/FoxUnit
https://doughennig.com/Papers/Pub/UnitTesting.pdf
Frank.
Frank Cazabon
On 29/10/2025 2:34 pm, Kurt Wendt wrote:
...that is the Dilemma!
And, yes - this is related to FoxPro - in regards to our current system conversion project of porting it to C#.
I just asked my IT guy here at work (who sits on the desk opposite mine) - what he knew about doing software testing. From what he has heard, in regards to doing Automated type testing - that's mainly for Web/Browser based apps. Since, he figures - it's not so easy to do testing automation of Desktop Apps.
So, I wanted to throw this out to the Hive Mind here. Is there actually tools that allow one to do automated testing for Desktop apps? And, if so - is any of that a kind of open-source thing? Cause - I really don't think the co. where I work would actually pay for testing automation tools.
Anyway - that's it for now...
L8r G8rs, -K
[excessive quoting removed by server]
You are writing a WPF application. I hope you are using the MVVM pattern. You can easily test the Model, ViewModel and services with something like xUnit.net. https://xunit.net
Writing tests for a view is a pain. As long as all your buttons are connected to the VM and you have no binding errors. UI logic belongs in the View. Business logic can be in the ViewModel or a business layer. How I have done it in the past. I wrote test for the business logic with automation such as xUnit. The UI I had to validate manually.
Is the WPF app View first or ViewModel first? Dependency Injection is very beneficial in the C# code base.
I have written small WPF apps that work both ways.
Good luck, Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kurt Wendt Sent: Wednesday, October 29, 2025 2:35 PM To: profoxtech@leafe.com Subject: To TEST or Not to Test...
...that is the Dilemma!
And, yes - this is related to FoxPro - in regards to our current system conversion project of porting it to C#.
I just asked my IT guy here at work (who sits on the desk opposite mine) - what he knew about doing software testing. From what he has heard, in regards to doing Automated type testing - that's mainly for Web/Browser based apps. Since, he figures - it's not so easy to do testing automation of Desktop Apps.
So, I wanted to throw this out to the Hive Mind here. Is there actually tools that allow one to do automated testing for Desktop apps? And, if so - is any of that a kind of open-source thing? Cause - I really don't think the co. where I work would actually pay for testing automation tools.
Anyway - that's it for now...
L8r G8rs, -K [excessive quoting removed by server]
Here is a quick copy of one of our many tests on an API that processes GET requests:
public class API_NWATests : IClassFixture<CustomWebApplicationFactory> { private readonly CustomWebApplicationFactory _factory; private readonly HttpClient _client;
public API_NWATests(CustomWebApplicationFactory factory) { _factory = factory; _client = factory.CreateClient(); }
[Fact] public async Task Get_NWAResults_ShouldReturnOk() { var lots = "30207304,30209014"; var items = "301000354";
var response = await _client.GetAsync($"/resources/api/infor/nwaresults?lots={lots}&items={items}");
var json = await response.Content.ReadAsStringAsync(); json.Should().NotBeNullOrWhiteSpace();
response.StatusCode.Should().Be(HttpStatusCode.OK); }
On Wed, Oct 29, 2025 at 2:23 PM Tracy Pearson tracy@powerchurch.com wrote:
You are writing a WPF application. I hope you are using the MVVM pattern. You can easily test the Model, ViewModel and services with something like xUnit.net. https://xunit.net
Writing tests for a view is a pain. As long as all your buttons are connected to the VM and you have no binding errors. UI logic belongs in the View. Business logic can be in the ViewModel or a business layer. How I have done it in the past. I wrote test for the business logic with automation such as xUnit. The UI I had to validate manually.
Is the WPF app View first or ViewModel first? Dependency Injection is very beneficial in the C# code base.
I have written small WPF apps that work both ways.
Good luck, Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kurt Wendt Sent: Wednesday, October 29, 2025 2:35 PM To: profoxtech@leafe.com Subject: To TEST or Not to Test...
...that is the Dilemma!
And, yes - this is related to FoxPro - in regards to our current system conversion project of porting it to C#.
I just asked my IT guy here at work (who sits on the desk opposite mine) - what he knew about doing software testing. From what he has heard, in regards to doing Automated type testing - that's mainly for Web/Browser based apps. Since, he figures - it's not so easy to do testing automation of Desktop Apps.
So, I wanted to throw this out to the Hive Mind here. Is there actually tools that allow one to do automated testing for Desktop apps? And, if so - is any of that a kind of open-source thing? Cause - I really don't think the co. where I work would actually pay for testing automation tools.
Anyway - that's it for now...
L8r G8rs, -K
[excessive quoting removed by server]
So, I wanted to throw this out to the Hive Mind here. Is there actually tools that allow one to do automated testing for Desktop apps?
Just as with web applications, for automated unit and integration testing you would decouple the business functionality from the UI. The MVC or MVVM models popular in web applications absolutely apply to desktop too, so all the .NET unit test and mocking frameworks can be used for that. NUnit, MSTest and so on.
I suspect what your IT guy meant was automated testing of the actual UI functionality, as you would do with a web app by automating a web browser using Selenium or something. Free tools exist for this, such as Winium or Microsoft's WinAppDriver. Although I'd be of the opinion that this is what User Acceptance Testing by humans is for.