Skip to content

Commit

Permalink
Updating .NET tests to allow navigating to https test pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jul 6, 2015
1 parent dc0cd1e commit f7b46bb
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions dotnet/test/chrome/WebDriver.Chrome.Tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="Port" value="2310"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>
2 changes: 1 addition & 1 deletion dotnet/test/common/CookieImplementationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public void ShouldRetainCookieExpiry()
}

[Test]
[IgnoreBrowser(Browser.IE, "Browser requires additional TLS settings to get secure cookies")]
[IgnoreBrowser(Browser.IE, "Browser does not handle untrusted SSL certificates.")]
[IgnoreBrowser(Browser.PhantomJS, "Untested browser")]
[IgnoreBrowser(Browser.Safari, "Untested browser")]
public void ShouldRetainCookieSecure()
Expand Down
4 changes: 3 additions & 1 deletion dotnet/test/common/Environment/UrlBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class UrlBuilder
string protocol;
string hostName;
string port;
string securePort;
string path;
string alternateHostName;

Expand All @@ -34,6 +35,7 @@ public UrlBuilder()
protocol = EnvironmentManager.GetSettingValue("Protocol");
hostName = EnvironmentManager.GetSettingValue("HostName");
port = EnvironmentManager.GetSettingValue("Port");
securePort = EnvironmentManager.GetSettingValue("SecurePort");
// TODO(andre.nogueira): Remove trailing / from folder
path = EnvironmentManager.GetSettingValue("Folder");
//Use the first IPv4 address that we find
Expand Down Expand Up @@ -76,7 +78,7 @@ public string WhereElseIs(string page)
public string WhereIsSecure(string page)
{
string location = string.Empty;
location = "https://" + hostName + ":" + port + "/" + path + "/" + page;
location = "https://" + hostName + ":" + securePort + "/" + path + "/" + page;

return location;
}
Expand Down
1 change: 1 addition & 0 deletions dotnet/test/firefox/WebDriver.Firefox.Tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="Port" value="2310"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>
1 change: 1 addition & 0 deletions dotnet/test/ie/WebDriver.IE.Tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="Port" value="2310"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>
2 changes: 2 additions & 0 deletions dotnet/test/opera/WebDriver.Opera.Tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="SecurePort" value="2410"/>
<add key="Port" value="2310"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>
3 changes: 2 additions & 1 deletion dotnet/test/phantomjs/WebDriver.PhantomJS.Tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="Port" value="2310"/>
<add key="Folder" value="common"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>
1 change: 1 addition & 0 deletions dotnet/test/remote/WebDriver.Remote.Tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="Port" value="2310"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>
3 changes: 2 additions & 1 deletion dotnet/test/safari/WebDriver.Safari.Tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<add key="Protocol" value="http"/>
<add key="HostName" value="localhost"/>
<add key="Port" value="2310"/>
<add key="Folder" value="common"/>
<add key="SecurePort" value="2410"/>
<add key="Folder" value="common"/>
</appSettings>
</configuration>

0 comments on commit f7b46bb

Please sign in to comment.