- People (usually no F# exposure) always want to understand what
&&&
is ex:"Some test" &&& fun _ -> url "http://www.google.com"
- To explain this I teach them about infix operators which also helps with them understand why you can do
"#name" == "Bob"
and with|>
- Its good to point out that canopy uses selenium and does not hide it at all. If you need to do something that canopy does not support, you can google for it and take the example and convert it to f#.
browser
is the instance of ISeleniumWebDriver - UI Automation works really well but is a pain because its sometimes more precise that people care about. It will uncover subtle bugs that people often time don't want to research and fix =(
- A great property of F# is that the most recent definition of a function is the one that is used. This lets you 'override' core functionality with some that is better for you. ex if you dont like how
displayed
works, you can create your own version and put it in a module and open it after op
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running selenium tests via Team City as a windows service has a resolution of 1024x768. I tryed adding/changing DefaultSettings.XResolution and YResolution in the registry with no luck. What did work was running TC agent in the console as a logged in user. | |
Use these instructions to setup a user to automatically log in when your box starts up | |
http://www.win2008workstation.com/configure-auto-logon/ | |
Add shortcut to the startup forlder on start menu: | |
C:\Users\YOUUSER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
that points to your team city agent's start.bat with 'start' parameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//first read about how to do something similar here: | |
http://atombrenner.blogspot.com/2012/09/embed-url-links-in-teamcity-build-logs.html | |
//plugin location | |
http://confluence.jetbrains.com/display/TW/StaticUIExtensions | |
//download at: | |
http://teamcity.jetbrains.com/repository/download/TeamCityPluginsByJetBrains_StaticUiExtensionsAgainstTeamCity8/latest.lastSuccessful/static-ui-extensions.zip | |
//after downloading you can go to you team city administrator, go to plugins, and upload the one you just downloaded | |
//restart TC web server so that it registers the plugin, once you go back you should have 1 more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd"> | |
<metadata> | |
<id>canopy</id> | |
<version>2.0.0</version> | |
<authors>Chris Holt</authors> | |
<licenseUrl>https://github.com/lefthandedgoat/canopy/blob/master/LICENSE.txt</licenseUrl> | |
<projectUrl>http://lefthandedgoat.github.io/canopy/</projectUrl> | |
<iconUrl>http://lefthandedgoat.github.io/canopy/canopy_orig.jpg</iconUrl> | |
<description>A simple framework in F# on top of selenium for writing UI automation and tests.</description> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;be sure to run AHK et all as administrator | |
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; require package managers, but we'll avoid them if at all possible | |
(require 'package) | |
(push '("melpa" . "http://melpa.milkbox.net/packages/") | |
package-archives) | |
;;===================================== | |
;;plugins | |
;;===================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#I @"C:\projects\fsxCanopy\packages\Selenium.WebDriver.3.0.0\lib\net40\" | |
#I @"C:\projects\fsxCanopy\packages\canopy.1.0.6\lib" | |
#r "WebDriver.dll" | |
#r "canopy.dll" | |
open canopy | |
open runner | |
open reporters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Test1 | |
open Xunit | |
open FsUnit.Xunit | |
type ``Context 1`` () = | |
let setup = failwith "do your setup here and if it returns unit its fine, it will bind to the setup val" | |
[<Fact>] | |
member x.``test 1`` () = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Color = | |
| Red | |
| Yellow | |
type Spot = | |
| Empty | |
| Color of Color | |
type Column = | |
| A |
I hereby claim:
- I am lefthandedgoat on github.
- I am lefthandedgoat (https://keybase.io/lefthandedgoat) on keybase.
- I have a public key whose fingerprint is 2605 18F6 0853 C366 17CE D7C2 013C B074 F73F 4256
To claim this, I am signing this object:
NewerOlder