Skip to content

Instantly share code, notes, and snippets.

@friendlyfreedom
Last active May 2, 2019 08:53
Show Gist options
  • Select an option

  • Save friendlyfreedom/4eeabd38d11800431d82048cfc7518a0 to your computer and use it in GitHub Desktop.

Select an option

Save friendlyfreedom/4eeabd38d11800431d82048cfc7518a0 to your computer and use it in GitHub Desktop.
$code = {
python -m pip install --upgrade pip
pip install robotframework
pip install robotframework-seleniumlibrary
pip install robotframework-faker
pip install robotframework-databaselibrary
pip install webdrivermanager
webdrivermanager -d "C:\Python36\Scripts" -l "C:\Python36\Scripts" chrome firefox
pip install robotframework-ride
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe" -OutFile "c:/temp/python-3.6.8-amd64.exe"
c:/temp/python-3.6.8-amd64.exe /passive InstallAllUsers=1 PrependPath=1 Include_launcher=1 Include_test=0 TargetDir="C:/Python36"| out-null
rm c:/temp/python-3.6.8-amd64.exe -recurse -force
Start-Process -FilePath powershell.exe -ArgumentList $code -verb RunAs -WorkingDirectory C: | out-null
python --version
robot --version
write-host "Gefeliciteerd, RobotFramework geïnstalleerd! (Dat rijmt!) "
write-host "Druk op een toets om dit venster te sluiten. "
$response = read-host
if ( $response -ne "Y" ) { exit }
@friendlyfreedom
Copy link
Author

This PowerShell script is for windows only. Tried on WIN7 and WIN10
Installs:

  • Python 3.6.8
  • RobotFramework
  • SeleniumLibrary
  • RobotFramework-Faker
  • webdrivermanager
  • latest chrome and firefox webdrivers
  • Ride

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment