At this moment there’s no package installer for MacPorts and Homebrew isn’t working at all. So to get MacPorts on a brand new installation of macOS Sierra we have to build it from source.
- “cd” into the directory where you downloaded the package and run “tar xjvf MacPorts-2.3.4.tar.bz2” or “tar xzvf MacPorts-2.3.4.tar.gz”, depending on whether you downloaded the bz2 tarball or the gz one, respectively.
- Build and install the recently unpacked sources:
- cd MacPorts-2.3.4
- ./configure && make && sudo make install
- cd ../
- rm -rf MacPorts-2.3.4*
A less technical view of unit testing would be driving a car around a lab, race track, or some other controlled environment. Integration testing would be the equivalent of driving the car outside in the real world. So testing self driving Google Cars around Austin would be integration testing for Google Cars.
I graduated from University of Texas with a BS in Computer Science in December of 2015 and I’ve been working for the University ever since. One of the problems I’ve encountered throughout my 3 year study is the lack of information on debugging applications. Sure you can get some fancy theoretical course on Debugging Programs, but majority of the students go through all the Computer Science courses writing damn print statements. Print statements might have been fine in the early 2000s, but come on, it’s 2016+. Please see the attached typical program
This again was pretty straight forward. After signing up with TravisCI using my GitHub account I just had to add the .travis.yml file to the repository. Make sure to configure the travis file correctly and if need to be you can also add encrypted information. I happened to commit my access key, but TravisCI does offer encryption options. I’ll just have to go back and regenerate a new one🙂
Serenity makes life pretty easy because it integrates well with Saucelabs. It’s as simple as adding the credentials and browser information into the serenity.properties file.
A useful tool is the list of platforms. Saucelabs only provides a certain variety of OS/Browser combinations so you have to make sure to run the correct combination. Also on the Saucelabs website we can find WIN7, however in Selenium WIN7 is not a valid enum, so we have to use vista instead. Here’s the list of valid platforms directly from Selenium source.
## Firefox ## https://saucelabs.com/beta/tests/a604701041db440697fdd7148fcc6ff3/watch saucelabs.test.name=OpenSourceTest_1 webdriver.driver=firefox saucelabs.url=http://<username>:<key>@ondemand.saucelabs.com:80/wd/hub saucelabs.target.platform=WIN8 saucelabs.driver.version=42 saucelabs.access.key=<key> saucelabs.user.id=<username>
##Internet Explorer 10 ## https://saucelabs.com/beta/tests/36bbc3ebb45a48fb9a97da8046aa7dfd/watch saucelabs.test.name=OpenSourceTest_1 webdriver.driver=iexplorer saucelabs.url=http://<username>:<key>@ondemand.saucelabs.com:80/wd/hub saucelabs.target.platform=WIN8 saucelabs.driver.version=10 saucelabs.access.key=<key> saucelabs.user.id=<username>
##Internet Explorer 9 ## https://saucelabs.com/beta/tests/c1ba02f7182f43f6895f0563ad843745/watch saucelabs.test.name=OpenSourceTest_1 webdriver.driver=iexplorer saucelabs.url=http://<username>:<key>@ondemand.saucelabs.com:80/wd/hub saucelabs.target.platform=vista saucelabs.driver.version=9 saucelabs.access.key=<key> saucelabs.user.id=<username>