Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
- </head>
- <body>
- <script type="text/javascript">
- $(document).ready(function() {
- config = [
- {
- "testFiles": [
- "Address2AutoCompleteTest",
- "AddressAutoCompleteTest"
- ],
- "pageUrl": "http://plugin.retrotax-aci.com",
- "capabilities": {
- "build": "web1",
- "project": "RetroTax",
- "platform":"WIN8",
- "browserName": "chrome",
- "version": "40",
- "resolution": "1024x768",
- "serverUrl":"hub.browserstack.com/wd/hub",
- "username": "jojer7@gmail.com",
- "password": "hjvfy3",
- "browserstack_debug": true,
- "acceptSslCerts": true
- }
- },
- {
- "testFiles": [
- "FirstNameCompleteTest"
- ],
- "pageUrl": "http://plugin.retrotax-aci.com",
- "capabilities": {
- "build": "web1",
- "project": "RetroTax",
- "platform":"WIN8",
- "browserName": "firefox",
- "version": "29",
- "resolution": "1024x768",
- "serverUrl":"hub.browserstack.com/wd/hub",
- "username": "jojer7@gmail.com",
- "password": "hjvfy3",
- "browserstack_debug": true,
- "acceptSslCerts": true
- }
- },
- {
- "testFiles": [
- "OpenPopupTest"
- ],
- "pageUrl": "http://plugin.retrotax-aci.com",
- "capabilities": {
- "build": "web1",
- "project": "RetroTax",
- "platform":"WIN8",
- "browserName": "firefox",
- "version": "29",
- "resolution": "1024x768",
- "serverUrl":"hub.browserstack.com/wd/hub",
- "username": "jojer7@gmail.com",
- "password": "hjvfy3",
- "browserstack_debug": true,
- "acceptSslCerts": true,
- "screenshotsPath":"C:\\Selenium\\"
- }
- }
- ];
- $.ajax({
- type: 'POST',
- url: 'http://185.25.117.111:8080/test',
- contentType: "application/json; charset=utf-8",
- dataType: 'json',
- async: true,
- cache: false,
- crossDomain: true,
- data: JSON.stringify(config),
- beforeSend: function (request) {
- request.withCredentials = true;
- request.setRequestHeader("Authorization", "Basic " + "YWRtaW46YWRtaW4xMjM0NQ==");
- },
- success: function(data) {
- console.log(data);
- },
- error: function(data) {
- console.log(data);
- }
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement