Adding tests to proc methods.
This commit is contained in:
@@ -13,4 +13,27 @@ Feature: The winGUI API client
|
||||
Then the returns of both must be equal
|
||||
|
||||
# Please note that most of the other screen methods use image recognition and, because of that, it is not possible to test them on every computer, since there is no way to know wich images are being displayed on the screen.
|
||||
# Also, the other methods wich do not use image recognition are simply too difficult to test.
|
||||
# Also, the other methods wich do not use image recognition are simply too difficult to test.
|
||||
|
||||
|
||||
Scenario: Testing proc_exec and proc_all methods
|
||||
Given a winGUI client
|
||||
When the proc_exec method is called with "mspaint"
|
||||
And the proc_all method is called
|
||||
Then there must be a process with the name "mspaint.exe" inside the list
|
||||
|
||||
|
||||
Scenario: Testing proc_name method
|
||||
Given a winGUI client
|
||||
And the initialization of Microsoft Paint
|
||||
And the "Name" and "Pid" infos about this process
|
||||
When the proc_name method is called with the "Pid" collected
|
||||
Then the return must be te same as the "Name" collected
|
||||
|
||||
|
||||
Scenario: Testing proc_pids method
|
||||
Given a winGUI 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
|
||||
Reference in New Issue
Block a user