![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 2
Rep Power: 0
![]() |
Simulating a users actions on a form (UI testing)
Hi, Im new here, I thought maybe some of you could help me with a problem. Basically Im writing automated testing for a piece of software and I need to write automated testing for the UI itself, i.e. actually testing the buttons etc. Im using D Unit (which I know isnt ideal for UI testing, but that doesnt really matter too much).
My problem is this, Ive got a form with buttons on and I need to write a piece of code to actually interact with those buttons in the way a user would (i.e. clicking them). The onclick event procedures are all private within the form so is there a good way to go about doing this that doesnt resort to making all click events public (as I cant really do that!!). Thanks in advance. |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
You could make a program that moves the mouse around and clicks it...
|
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Apr 2005
Posts: 2
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Apr 2005
Posts: 2
Rep Power: 0
![]() |
Hi
If you want to click Button1,you can use following: Button1.Click(self); sincerely yours |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() ![]() |
I'm thinking Hero's approach would be the easiest...
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|