Advertisement
Guest User

hahafuckinghaha

a guest
Oct 7th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.46 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title></title>
  5.     <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
  6. </head>
  7. <body>
  8.  
  9.     <script type="text/javascript">
  10.         $(document).ready(function() {
  11.             config = [
  12.             {
  13.                     "testFiles": [
  14.                             "Address2AutoCompleteTest",
  15.                             "AddressAutoCompleteTest"
  16.                     ],
  17.                     "pageUrl": "http://plugin.retrotax-aci.com",
  18.                     "capabilities": {
  19.                             "build": "web1",
  20.                             "project": "RetroTax",
  21.                             "platform":"WIN8",
  22.                             "browserName": "chrome",
  23.                             "version": "40",
  24.                             "resolution": "1024x768",
  25.                             "serverUrl":"hub.browserstack.com/wd/hub",
  26.                             "username": "jojer7@gmail.com",
  27.                             "password": "hjvfy3",
  28.                             "browserstack_debug": true,
  29.                             "acceptSslCerts": true
  30.                     }
  31.             },
  32.             {
  33.                     "testFiles": [
  34.                             "FirstNameCompleteTest"
  35.                     ],
  36.                     "pageUrl": "http://plugin.retrotax-aci.com",
  37.                     "capabilities": {
  38.                             "build": "web1",
  39.                             "project": "RetroTax",
  40.                             "platform":"WIN8",
  41.                             "browserName": "firefox",
  42.                             "version": "29",
  43.                             "resolution": "1024x768",
  44.                             "serverUrl":"hub.browserstack.com/wd/hub",
  45.                             "username": "jojer7@gmail.com",
  46.                             "password": "hjvfy3",
  47.                             "browserstack_debug": true,
  48.                             "acceptSslCerts": true
  49.                     }
  50.             },
  51.             {
  52.                     "testFiles": [
  53.                             "OpenPopupTest"
  54.                     ],
  55.                     "pageUrl": "http://plugin.retrotax-aci.com",
  56.                     "capabilities": {
  57.                             "build": "web1",
  58.                             "project": "RetroTax",
  59.                             "platform":"WIN8",
  60.                             "browserName": "firefox",
  61.                             "version": "29",
  62.                             "resolution": "1024x768",
  63.                             "serverUrl":"hub.browserstack.com/wd/hub",
  64.                             "username": "jojer7@gmail.com",
  65.                             "password": "hjvfy3",
  66.                             "browserstack_debug": true,
  67.                             "acceptSslCerts": true,
  68.                             "screenshotsPath":"C:\\Selenium\\"
  69.                     }
  70.             }
  71.         ];
  72.  
  73.         $.ajax({
  74.             type: 'POST',
  75.             url: 'http://185.25.117.111:8080/test',
  76.             contentType: "application/json; charset=utf-8",
  77.             dataType: 'json',
  78.             async: true,
  79.  cache: false,
  80.  crossDomain: true,
  81.             data: JSON.stringify(config),
  82.             beforeSend: function (request) {
  83.                 request.withCredentials = true;
  84.                 request.setRequestHeader("Authorization", "Basic " + "YWRtaW46YWRtaW4xMjM0NQ==");
  85.             },
  86.             success: function(data) {
  87.                 console.log(data);
  88.             },
  89.             error: function(data) {
  90.                 console.log(data);
  91.             }
  92.         });
  93.         });
  94.     </script>
  95.  
  96. </body>
  97. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement