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
// this can also be imported, | |
// it can help to organize your whole test suite | |
var settings = { | |
maxUsers: 20, | |
usersFlow1: 20, | |
usersFlow2: 30, | |
usersFlow3: 50 |
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
import http from "k6/http"; | |
import {group} from "k6"; | |
import { Counter } from "k6/metrics"; | |
//adding these metrics to count each group execution | |
var group1Counter = new Counter("counter_group1"); | |
var group2Counter = new Counter("counter_group2"); |
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
import http from "k6/http"; | |
import {check} from "k6"; | |
if (!String.prototype.includes) { | |
String.prototype.includes = function(search, start) { | |
'use strict'; | |
if (typeof start !== 'number') { | |
start = 0; | |
} | |
if (start + search.length > this.length) { |
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 time = xxxx; | |
option A | |
result.custom_metric("metric1", time) | |
{ | |
"thresholds": { | |
"metric1", | |
"< 100" | |
0.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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import SelectMetricTracker from './event-tracks/select-metric'; | |
import OpenConfigureVisualizationTracker from './event-tracks/open-configure-visualization'; | |
import OpenInfoTracker from './event-tracks/open-info'; | |
import ChangeExampleTracker from './event-tracks/change-example'; | |
var EventTracks = { | |
addUserScenarioByURLRequest: true, //add scenario from url from test.config | |
openUserScenario: true, //edit scenario from test.config |
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 AppRouter = Router.extend({ | |
previousHandlers: null, | |
currentHandlers: null, | |
transitionChanged: function() { | |
var previousHandlers = this.router.oldState.handlerInfos; | |
this.set('previousHandlers', previousHandlers); | |
var currentHandlers = this.router.currentHandlerInfos; | |
this.set('currentHandlers', currentHandlers); |