Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tabs Container
directionhorizontal
Tabs Page
titleJava Example
Expand
titleClick here to view the Java example

View Git file
pathintstanton-webboarding-testsmodules/junit/InstantSauceJunitTest1src/test/java/Module1JunitTest.java
repository-id33
languagejava
branchrefs/remotes/origin/master

Tabs Page
titleC# Example
Expand
titleClick here to view the C# example

View Git file
pathSauceExamples/Web.Tests/OnboardingTests/InstantSauceTest.cs
repository-id34
languagec#
branchrefs/remotes/origin/master

Tabs Page
titlePython Example
Expand
titleClick here to view the Python example

View Git file
pathon-boarding-modules/pytest/instant-sauce-pytest3-examples/test_module1_pytest.py
repository-id36
languagepy
branchrefs/remotes/origin/master

Tabs Page
titleRuby Example
Expand
titleClick here to view the Ruby example

View Git file
pathspec/instant_sauce_test3test1_spec.rb
repository-id37
languageruby
branchrefs/remotes/origin/master

Tabs Page
titleJavaScript Example
Expand
titleClick here to view the JavaScript example

View Git file
pathwebon-testsboarding-modules/instant-saucemocha-examples/test/module1-mocha-test3test.js
repository-id38
languagepyjs
branchrefs/remotes/origin/master

Tip
titleUse Environment Variables for Authentication Credentials

It's a recommended Best Practice to use environment variables for your credentials, rather than hardcoding them into your scripts. This makes it easy to run a test written by anyone from your local machine or continuous integration server, and also prevents security issues with having your authentication credentials exposed in the script. After you've run your first test with hardcoded credentials, you should set it to use environment variables. Set up the environment variables on your local machine as shown in the Best Practices topic, and then you can incorporate them into your scripts as shown in these examples.

Tabs Container
directionhorizontal
Tabs Page
titleJava Example
Expand
titleClick here to view the Java example

View Git file
pathintstanton-webboarding-testsmodules/junit/InstantSauceJunitTest2src/test/java/Module2JunitTest.java
repository-id33
branchrefs/remotes/origin/master

Tabs Page
titleC# Example
Expand
titleClick here to view the C# example

View Git file
pathSauceExamples/Web.Tests/OnboardingTests/InstantSauceTest2.cs
repository-id34
languagec#
branchrefs/remotes/origin/master

Tabs Page
titlePython Example
Expand
titleClick here to view the Python example

View Git file
pathon-boarding-modules/pytest/instant-sauce-pytest2-examples/test_module2_pytest.py
repository-id36
languagepy
branchrefs/remotes/origin/master

Tabs Page
titleRuby Example
Expand
titleClick here to view the Ruby example

View Git file
pathspec/instant_sauce_test2_spec.rb
repository-id37
languagepy
branchrefs/remotes/origin/master

Tabs Page
titleJavaScript Example
Expand
titleClick here to view the JavaScript example

View Git file
pathwebon-testsboarding-modules/instant-saucemocha-examples/test/module2-mocha-test2test.js
repository-id38
languagepyjs
branchrefs/remotes/origin/master

...

Tabs Container
directionhorizontal
Tabs Page
titleJava Example
Expand
titleClick here to view the Java example

View Git file
pathintstanton-webboarding-testsmodules/junit/InstantSauceJunitTest3src/test/java/Module3JunitTest.java
repository-id33
languagejava
branchrefs/remotes/origin/master

Tabs Page
titleC# Example
Expand
titleClick here to view the C# example

View Git file
pathSauceExamples/Web.Tests/OnboardingTests/InstantSauceTest3.cs
repository-id34
languagec#
branchrefs/remotes/origin/master

Tabs Page
titlePython Example
Expand
titleClick here to view the Python example

View Git file
pathon-boarding-modules/pytest/instant-sauce-pytest1-examples/test_module3_pytest.py
repository-id36
languagepy
branchrefs/remotes/origin/master

Tabs Page
titleRuby Example
Expand
titleClick here to view the Ruby example

View Git file
pathspec/instant_sauce_test1test3_spec.rb
repository-id37
languagepy
branchrefs/remotes/origin/master

Tabs Page
titleJavaScript Example
Expand
titleClick here to view the JavaScript example

View Git file
pathwebon-testsboarding-modules/instant-saucemocha-examples/test/module3-mocha-test1test.js
repository-id38
languagepyjs
branchrefs/remotes/origin/master

...

Tabs Container
directionhorizontal
Tabs Page
titleJava Example
Expand
titleClick here to view the Java example

View Git file
pathintstanton-webboarding-testsmodules/junit/InstantSauceJunitTest4src/test/java/Module4JunitTest.java
repository-id33
languagejava
branchrefs/remotes/origin/master

Tabs Page
titleC# Example
Expand
titleClick here to view the C# example

View Git file
pathSauceExamples/Web.Tests/OnboardingTests/InstantSauceTest4.cs
repository-id34
languagec#
branchrefs/remotes/origin/master

Tabs Page
titlePython Example
Expand
titleClick here to view the Python example

View Git file
pathon-boarding-modules/pytest/instant-sauce-pytest4-examples/test_module4_pytest.py
repository-id36
languagepy
branchrefs/remotes/origin/master

Tabs Page
titleRuby Example
Expand
titleClick here to view the Ruby example

View Git file
pathspec/instant_sauce_test4_spec.rb
repository-id37
languageruby
branchrefs/remotes/origin/master

Tabs Page
titleJavaScript Example
Expand
titleClick here to view the JavaScript example

View Git file
pathwebon-testsboarding-modules/instant-saucemocha-examples/test/module4-mocha-test4test.js
repository-id38
languagejs
branchrefs/remotes/origin/master

...