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
npm install grunt -g | |
npm install -g grunt-cli |
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 webdriver = require('selenium-webdriver'); | |
var test = require('selenium-webdriver/testing'); | |
var assert = require('assert'); | |
var driver; | |
function testIT (test){ | |
test.it('тест №1', function () { | |
//... | |
}); | |
//... |
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
test.it('проверка заголовка страницы', function () { | |
driver.get("http://localhost:8091/MC/development/"); | |
driver.getTitle().then(function (title) { | |
assert.equal("Multi Care", title, "Заголовок не Multi Care"); | |
}); | |
}); |
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
//snippets | |
//Элемент представлен на странице | |
var eIsPresent = function (element, callback) { | |
driver.isElementPresent(element).then(function (elementFound) { | |
if (elementFound) { | |
if (callback) { | |
callback(); | |
} | |
} |
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
test.it('сценарий поиска пациента, и просмотр его документа', function () { | |
/* | |
Ишим Александра Александровича, фильтруем, переходим на третью страницу | |
*/ | |
var navigatorIEMKButtonMenu = { css: '.navigator-iEMK > a' }; | |
var inputName = { id: '962649F2-4787-D481-0ED1-0C0CA6AEFB35' }; | |
var inputMiddleName = { id: '8107DBF2-8FCC-CFA9-C263-019A2C73AC40' }; | |
var actionButton = { css: '.ActionButton > a' }; | |
var tableTr = { css: '.mc-grid-body > tr'}; | |
var pagination = { css: '.PaginationTable .pager-value'}; |
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
{ | |
"name": "name", | |
"preferGlobal": false, | |
"version": "0.0.1", | |
"author": "author", | |
"description": "description", | |
"scripts": { | |
"postinstall": "grunt postinstall" | |
}, | |
"dependencies": { |
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
{ | |
"name": "name", | |
"private": true, | |
"dependencies": { | |
"backbone-amd": "~1.1.0", | |
"json2": "*", | |
"backbone.localstorage": "~1.1.7", | |
"underscore-amd": "~1.4.4", | |
"nnnick-chartjs": "*", | |
"d3": "~3.3.5", |
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
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get install mongodb-10gen |
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
sudo apt-get install debconf openssl | |
wget http://eu.download.kerio.com/dwn/control/control-8.2.1-1461/kerio-control-vpnclient-8.2.1-1461-linux.deb . | |
sudo dpkg -i kerio-control-vpnclient-8.2.1-1461-linux.deb |
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
//snippets | |
var eIsPresent = function (element) { | |
var d = webdriver.promise.defer(); | |
driver.isElementPresent(element).then(function (elementFound) { | |
if (elementFound) { | |
d.fulfill(elementFound); | |
} | |
}); | |
return d; | |
}; |
OlderNewer