Can't use sendkeys with Jenkins using Windows automated Snapin tool for Powershell

13 views
Skip to first unread message

Jenkins Johnny

unread,
Sep 27, 2016, 7:33:57 AM9/27/16
to Jenkins Users

In the example below, I'm using WASP to try and use sendkeys with Jenkins. The following code input a min and max number into a random number generator and returns the results.


Link to the code:

http://pastebin.com/cCGwyq3i



My results return as follows:

Minimum input = 5

Maximum input = 6

Result = 5 

Now, when I try to run this PS1 file through a batch in Jenkins, it sends me no errors, but my results return as e.g.:

Minimum input = 1

Maximum input = 100

Result = 11 

I doesn't seem to accept the sendkeys into the field. I know regular sendkeys in powershell doesn't work with Jenkins, but I figured since WASP is for automated testing that it would work.

How can I get this working, or can it even? I'm at my wits end with this program!

Reply all
Reply to author
Forward
0 new messages