Jump to content

Running autoit script as .exe for automation testing

Recommended Posts

Hi Team, I have been able to upload a file through my local system using autoit script (.exe) file, here the file name(to be uploaded during the test is run) is passed as an argument to my java code which is then concatenated and then pass the whole path including the file name as an argument CmdLine[1] to the autoit executable file which successfully uploads the file.

But when I try to run the same test suite from other system using my server it is not able to execute and upload, although the path of the file is getting detected and prints in my console. We are using selenium for the automation, it seems that the script cannot be run in client-server mode.

1st Try: I have kept the file to be uploaded in my local system : Uploaded Successfully

2nd Try: Kept file in node system: Failed to upload

3rd Try: Kept file in my local system, and run the script from the node system: Failed to upload

Please advice, if this is possible and if yes what am I missing? Mine is windows 7 system and same for the node too.

Thank You!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...