Monday, 27 November 2017

browser stack

1. proxy setup
  • webDriverProxy: 'http://606885:summer99@qfwsg-prod.qantas.com.au:8080'

2. local testing
  • test internal server
  • use 'browserstack-local'
  •  exports.bs_local.start({ 'key': exports.config.capabilities['browserstack.key'], 'proxyHost': 'qfwsg-prod.qantas.com.au', 'proxyPort': '8080', 'proxyUser': '606885', 'proxyPass': 'summer99' }, function (error)

3. protractor-multiple-cucumber-html-reporter-plugin + multiple-cucumber-html-reporter
  • connect Protractor, CucumberJS and protractor-cucumber-framework
  • create multiple reports for parallel testing  

4. protractor-cucumber-framework

5. run cucumber/protractor feature files in parallel

6. protractor tips and tricks
  • browser.pause()

7. using local test exe
  • BrowserStackLocal.exe --key 8ceKoJrDNAowyMaFV5py --proxy-host qfwsg-prod.qantas.com.au --proxy-port 8080 --proxy-user 606885 --proxy-pass winter99


reference

Saturday, 4 November 2017

powershell & chocolatey

1. set web proxy

$reg = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
Set-ItemProperty -Path $reg -Name ProxyServer -Value "proxy.example.org:8080"
Set-ItemProperty -Path $reg -Name ProxyEnable -Value 1


2. install chocolatey
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))


3. install and uninstall app
  • cinst jdk8 -y
  • clist -l
  • cuninst packagename

4. execute native command
  • iex

5. execute executable
  • &

6. log console output to file

  • Start-Transcript -path $LogFile -append
  • Stop-Transcript

7. task security

  • run only when user is logged on
  • run whether user is logged on or not (does not work for UI interactive program like autoit)

8. rdp session



ref
1. set window web proxy with powershell
2. powerscript to install dev machine
3. powershell run executables
4. redirect output to file
5. task security when using schtasks
6. rdp session timeout configuration
7. inactive logon windows 2012