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
c:\Source\Selenium\selenium>go build | |
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0 | |
Picked up _JAVA_OPTIONS: -Xmx512M | |
(in C:/Source/Selenium/selenium) | |
python C:/Source/Selenium/selenium/buck-out/crazy-fun/65874cbc58fab1746c2e7d15ea7c2f545fb0df38/buck.pex kill | |
[-] PARSING BUCK FILES...FINISHED 1.2s [100%] | |
BUILT 1/42 JOBS 2.0s //java/client/src/org/openqa/selenium:beta | |
BUILT 2/42 JOBS 2.0s //java/client/src/org/openqa/selenium:primitives | |
BUILT 3/42 JOBS 0.7s //third_party/java/guava:guava | |
BUILT 4/42 JOBS 0.4s //third_party/java/commons:commons-exec |
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
using System; | |
using System.Threading; | |
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Chrome; | |
using OpenQA.Selenium.IE; | |
namespace ClientDebuggingTests | |
{ | |
[TestFixture] |
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
var popup = Driver.SwitchTo().Alert(); | |
popup.Accept(); |
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
//Must use Nunit | |
//Must update AssemblyInfo.cs to have this: | |
//[assembly: Parallelizable(ParallelScope.Fixtures)] | |
//[assembly: LevelOfParallelism(10)] [assembly: LevelOfParallelism(100)] | |
[TestFixture] | |
[Parallelizable] | |
class ParallelTestsWithBestPractices | |
{ | |
[Test] |
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
Logger.Info(String.Format(Constants.logMsgStartFormat, TestContext.CurrentContext.Test.Name, DateTime.UtcNow)); | |
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | | |
SecurityProtocolType.Tls11 | | |
SecurityProtocolType.Tls | | |
SecurityProtocolType.Ssl3; | |
DesiredCapabilities capabilities = new DesiredCapabilities(); | |
//capabilities.SetCapability("device", TestPlatform); | |
capabilities.SetCapability("platformName", TestPlatform); | |
//capabilities.SetCapability("deviceOrientation", "portrait"); | |
capabilities.SetCapability("platformVersion", TestPlatformVersion); |
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
@AfterMethod | |
public void tearDown(ITestResult result) throws Exception { | |
((JavascriptExecutor) webDriver.get()). | |
executeScript("sauce:job-result=" + (result.isSuccess() ? "passed" : "failed")); | |
webDriver.get().quit(); | |
//todo all other logic that you want to perform here should come after the 2 calls at the top | |
} |
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
[Test] | |
public void JITData() | |
{ | |
//we need a new test user so we create one | |
var amazonAPI = new AmazonAPI(); | |
var testUser = amazonAPI.CreateUser("test@email.com","Test12345*") | |
new AmazonLoginPage(Driver).Login(testUser).Should().BeTrue(); | |
//we clean up after |
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
#Start the 1st tunnel | |
.\bin\sc.exe -i NikolaysTunnel2 -u nikolay-a -k CD7874C45DF24FDF -x h | |
ttps://us1.api.testobject.com/sc/rest/v1 | |
#Start the 2nd tunnel and make sure that you specify the pidfile, logfile, and new port. | |
.\bin\sc.exe -i NikolaysTunnel2 -u nikolay-a -k CD7874C45DF24FDF -x h | |
ttps://us1.api.testobject.com/sc/rest/v1 --pidfile .\sc2.pid --logfile .\sc2.log -P 4446 |
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
resources: | |
- repo: self | |
queue: | |
name: Hosted VS2017 | |
demands: | |
- msbuild | |
- visualstudio | |
- vstest | |
steps: |
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
Test Name: SimpleTest | |
Test FullName: AppiumOnDotNetFramework.Rdc.SimpleTest | |
Test Source: C:\Source\SauceLabs\saucelabs-training\demo-csharp\demo-csharp\SauceExamples\AppiumOnDotNetFramework\Rdc.cs : line 20 | |
Test Outcome: Failed | |
Test Duration: 0:00:39.0009266 | |
Result StackTrace: | |
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) | |
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) | |
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities appiumOptions) |
OlderNewer