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
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 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 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 | |
git@github.com:TeamMentor/TM_4_0_QA.git |
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 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 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
// a) Public IP address | |
WebClient webClient = new WebClient(); | |
var IP = webClient.DownloadString("http://checkip.dyndns.org/"); | |
return IP; // Current IP Address: 104.45.82.120 | |
//using System.Net; | |
//b) current hostname | |
return Dns.GetHostName(); // RD000D3AB0B28A |
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
$regHive = [Microsoft.Win32.RegistryHive]::LocalMachine | |
$regView = [Microsoft.Win32.RegistryView]::Registry32 | |
$regKey = [Microsoft.Win32.RegistryKey]::OpenBaseKey($regHive, $regView) | |
$frameworkPath = $regKey.OpenSubKey("SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").GetValue("InstallPath") | |
$frameworkPath | |
#returns D:\Windows\Microsoft.NET\Framework\v4.0.30319\ |
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
vagrant init ubuntu/trusty64 | |
vagrant up | |
vagrant ssh | |
### inside vagrant SSH | |
# JDK | |
sudo apt-get install openjdk-7-jdk openjdk-7-jre-headless | |
# Elastic Search |
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
File Watcher | |
CoffeeScript | |
``` | |
/usr/local/bin/coffee | |
--output $ProjectFileDir$/.dist/$FileDirRelativeToProjectRoot$/ --compile --map $FileName$ | |
$FileDir$ | |
$ProjectFileDir$/.dist/$FileDirRelativeToProjectRoot$/$FileNameWithoutExtension$.js:$ProjectFileDir$/dist/$FileDirRelativeToProjectRoot$/$FileNameWithoutExtension$.map |
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
doctype html | |
html(lang="en") | |
head | |
meta(charset="utf-8") | |
title Test | |
script(src='https://ajax.googleapis.com/ajax/libs/angularjs/1.4.1/angular.js') | |
script(src='http://coffeescript.org/extras/coffee-script.js') | |
style. | |
input { width: 200px } | |
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
extends ../../../TM_Jade/_layouts/page_logged_out.jade | |
block content | |
script(src='/angular/js/lib.js') | |
#application | |
.row | |
.col-3 | |
.col-3 | |
div(ng-controller="TestController") |