Adding tests to window methods.
This commit is contained in:
@@ -36,4 +36,28 @@ Feature: The winGUI API client
|
||||
And the initialization of Microsoft Paint
|
||||
And the "Name" and "Pid" infos about this process
|
||||
When the proc_pids is called
|
||||
Then the "Pid" info collected must be inside the array returned
|
||||
Then the "Pid" info collected must be inside the array returned
|
||||
|
||||
|
||||
Scenario: Testing the window_list and window_hwnd methods
|
||||
Given a winGUI client
|
||||
And the initialization of Microsoft Paint
|
||||
And the "Name" and "Pid" infos about this process
|
||||
|
||||
When the window_hwnd method is called with the parameter "mspaint.exe"
|
||||
And the window_list method is called
|
||||
|
||||
Then the return of window_hwnd must be the value of one of the "Hwnd" keys returned in window_list
|
||||
|
||||
|
||||
# Scenario: Testing window_activate, window_activetitle and window_activehwnd
|
||||
# Given a winGUI client
|
||||
# And the initialization of Microsoft Paint
|
||||
# And the "Name" and "Pid" infos about this process
|
||||
# And the window hwnd obtained from the "Name" info
|
||||
|
||||
# When the window_activate method is called with the Paint Hwnd obtained
|
||||
# And the methods window_activetitle and window_activehwnd are called
|
||||
|
||||
# Then the returned value from window_activetitle must contain the substring "Paint"
|
||||
# And the returned value from window_activehwnd must be equal to the hwnd previously obtained
|
||||
Reference in New Issue
Block a user