This file contains hidden or 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 bsl = (ITradeServices)App.BSL; | |
return bsl.login("uid:1","xxx"); | |
//using Trade.BusinessServiceContract | |
//using Trade.StockTraderWebApplicationServiceClient | |
//using StockTrader; | |
//O2Ref:StockTrader.exe | |
//O2Ref:PresentationFramework.dll | |
//O2Ref:PresentationCore.dll |
This file contains hidden or 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
#!/bin/sh | |
if [ ! -f ./TM_4_0_QA ]; then | |
echo Folder TM_4_0_QA exists so doing a git pull | |
cd TM_4_0_QA | |
git pull origin | |
git submodule update | |
#ls -l | |
else | |
echo Folder TM_4_0_QA does not exists so doing a git pull | |
[email protected]:TeamMentor/TM_4_0_QA.git |
This file contains hidden or 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
describe 'test suite xyz', -> | |
skip_Tests_If_Offline = (testSuite,next)=> | |
url = "https://www.google.com" | |
url.GET (html)=> | |
if not html | |
for test in testSuite.tests | |
test.pending = true | |
next() | |
This file contains hidden or 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
QA_NWR_API = require './TM-QA-NWR-API' | |
app = require '../../app' | |
describe.only 'swagger', -> | |
page = QA_NWR_API.create(before, after) | |
url = 'http://localhost:8002/' | |
server = null | |
before (done)-> |
This file contains hidden or 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
console.log('--------------------------') | |
Object.defineProperty global, '__stack', { | |
get: ()-> | |
orig = Error.prepareStackTrace; | |
Error.prepareStackTrace = (_, stack)-> return stack; | |
err = new Error; | |
Error.captureStackTrace(err, arguments.callee); | |
stack = err.stack; | |
Error.prepareStackTrace = orig; |
This file contains hidden or 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 watcher | |
require 'fluentnode' | |
fs = require 'fs' | |
project_Folder = atom.project.path | |
coverage_file = project_Folder.path_Combine('coverage/lcov.info') | |
watcher_Src =null | |
watcher_Test =null | |
watcher_Cov =null |
This file contains hidden or 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
require('nw.gui').Window.open('http://www.google.com', { 'new-instance': true , show:true, toolbar:true}) |
This file contains hidden or 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
if (iframe1.contentWindow.location.href.indexOf 'google') is -1 | |
iframe1.src='https://www.google.com' | |
else | |
document = iframe1.contentDocument | |
document.getElementsByName('q')[0].value = 'Node WebKit REPL' | |
document.getElementsByName('btnG')[0].click() |
This file contains hidden or 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
require 'fluentnode' | |
wd = require('wd'); | |
browser = wd.remote(); | |
url = "http://localhost:4444/wd/hub/sessions" | |
open_New_Browser_Session = (next)-> | |
"creating new browser session".log() | |
browser.init {browserName:'chrome'},-> | |
browser.get 'file:///Users/diniscruz/_Dev_Tests/node-webkit/my-first-test/index.html',-> |
This file contains hidden or 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
url = 'http://127.0.0.1:4444/wd/hub/sessions' | |
options = { active:true, windowType:"normal", currentWindow: true } | |
chrome.tabs.query(options,function(tabs) | |
{ | |
tabId = tabs[0].id | |
console.log(tabId) | |
chrome.tabs.update(tabId, {url: url}) | |
chrome.tabs.executeScript(tabId, {file:'bower_components/jquery/dist/jquery.min.js'}, function() |