Skip to content

Instantly share code, notes, and snippets.

}]).filter('dataCardLink', ['$state', 'Localization', 'HandlerService', function ($state, Localization, HandlerService) {
return function (dataValue, template, options, dataCardId) {
var id = dataValue.id;
var module = dataValue.targetModuleCode;
if (!id) {
return "";
}
var oldParams = angular.copy($state.params);
'use strict';
efecte.directives.directive("moreActions",[
'$filter', '$state', 'DataCardService','DataCardHelperService', 'DashboardService', 'notificationBarService', 'UserProfileService', 'EfecteStateService', 'DataCardTransformService',
function ($filter, $state, DataCardService,DataCardHelperService, DashboardService, notificationBarService, UserProfileService, EfecteStateService, DataCardTransformService) {
var possibleActions;
function _controller($scope) {
var tools = require('./commonPageObj');
var ptor = protractor.getInstance();
ddescribe('Efecte loop tests', function () {
'use strict';
// node
var util = require('util');
// use this to end tests
'use strict';
var tools = require('./commonPageObj');
var ptor = protractor.getInstance();
// Use the external Chai As Promised to deal with resolving promises in
// expectations.
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
start:18:16:52
mem:234.34 MB
mem:314.85 MB
mem:347.58 MB
mem:406.08 MB
mem:372.47 MB
mem:386.06 MB
mem:446.14 MB
mem:474.13 MB
mem:464.74 MB
'use strict';
var _ = require('lodash');
var q = require('q');
var PageObj = function(cfg, flow, expect) {
this.cfg = cfg;
this.flow = flow;
this.expect = expect;
this.ptor = protractor.getInstance();

sTest - stability and performance lib

this is simple small module to run stability tests, the idea is easy, it takes steps in the test in a loop base on how long you tel "him" to run... for example 20s || 1h and save te results of mem usage browser, cup usage browser and time how long it take, you can have many test case this in one test suite:

  • gruntjs
  • protractorjs
  • mochajs
  • chaijs
  • selenium standalone server
/opt/apache/tomcat/latest/bin/catalina.sh run
[2014-07-02 05:03:16,138] Artifact Gradle : com.orbitbenefits:benefitsadmin-rest : benefitsadmin-rest-14.7.3-SNAPSHOT.war (exploded): Server is not connected. Deploy is not available.
Connected to the target VM, address: '127.0.0.1:47308', transport: 'socket'
Jul 02, 2014 5:03:17 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/idea/bin::/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Jul 02, 2014 5:03:17 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8181"]
Jul 02, 2014 5:03:17 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 02, 2014 5:03:17 PM org.apache.catalina.startup.Catalina load
var express = require('express'), app = express(), path = require('path'), fs = require('fs'), q = require('q');
function getFileList() {
var deferred = q.defer(), reportDir = path.resolve('report/');
fs.readdir(reportDir,function(err, files){
if (err) {
deferred.reject(new Error(err));
} else {
var html = '';
if (files.length > 0) {
filter('translate', function (SOME_SERVICE) {
return function (key, args) {
function formatString(str) {
if(!str) {return ""};
var args = Array.prototype.slice.call(arguments, 1),
rgx = /{(\d+)}/g;
if(!args.length) return str;
return str.replace(rgx, function(match, number) {
return typeof args[number] != 'undefined' ?args[number] : match;