Tutorial by Examples: ch

var config = {}; var timeout = 120000; config.framework = 'jasmine2'; config.allScriptsTimeout = timeout; config.getPageTimeout = timeout; config.jasmineNodeOpts.isVerbose = true; config.jasmineNodeOpts.defaultTimeoutInterval = timeout; config.specs = ['qa/**/*Spec.js']; config.capabilitie...
This configuration lets' you run your total spec files in two browser instances in parallel. It helps reduce the overall test execution time. Change the maxInstances based on your need. Note: Make sure your tests are independent. var config = {}; var timeout = 120000; config.framework = 'jasmi...
var config = {}; var timeout = 120000; config.framework = 'jasmine2'; config.allScriptsTimeout = timeout; config.getPageTimeout = timeout; config.jasmineNodeOpts.isVerbose = true; config.jasmineNodeOpts.defaultTimeoutInterval = timeout; config.specs = ['qa/**/*Spec.js']; config.multiCapabi...
Sometimes, you need to override one or more attributes of a particular Data Access Class (DAC) field just for a particular screen, without changing the existing behavior for other screens. Replacing All Attributes Suppose the original DAC field attributes are declared as shown below: public class...
The GLib.Task provide low-level API for performing asynchronous operations. var task = new GLib.Task (null, null, (obj, result) => { try { var ret = result.propagate_boolean (); } catch (Error err) { // handler err... } }); Later in a thread or a callback: t...
Once the dist directory is ready with your production built bundles. Just open the dist directory and open the command prompt type the following command to create the war file to deploy your project on apache tomcat server. jar cvf dist.war . Once the above jar commands gets executed. It wou...
Cut/Copy the dist.war file from dist directory and place it in apache tomcat webapp directory. Go to apache tomcat bin folder and double click on startup.bat file. Now tomcat server will execute dist.war file and startup the tomcat catalina server. Once the tomcat catalina server gets started o...
Service that is used for communication: import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; @Injectable() export class ComponentCommunicationService { private componentChangeSource = new Subject(); private newDateCreationSource = new Subject<Date&...
To change a label's text font, you need to access its font property: label.font = UIFont(name:"Helvetica Neue", size: 15) The code above will change the font of the label to Helvetica Neue, size 15. Beware that you must spell the font name correctly, otherwise it will throw this error,...
Kernel manages operating system resources. User program can only access to those resources by making system calls to the kernel. System call is similar to an API of kernel, which in term, runs kernel tasks your program needs. str = "something" // run on user space x = x + 1 // run on use...
Different procedures can give out the same result, but they would use different processing time. In order to check out which one is faster, a code like this can be used: time1 = Timer For Each iCell In MyRange iCell = "text" Next iCell time2 = Timer For i = 1 To 30 MyRan...
$service = new NetSuiteService(); $search = new TransactionSearchAdvanced(); $internalId = '123';//transaction internalId $search->criteria->basic->internalIdNumber->searchValue = $internalId; $search->criteria->basic->internalIdNumber->operator = "equalTo"; ...
Let's say we have a component that should only be displayed if the user is logged in. So we create a HOC that checks for the authentication on each render(): AuthenticatedComponent.js import React from "react"; export function requireAuthentication(Component) { return class Auth...
I found this to be the way to properly nest children routes inside the app.routing.ts or app.module.ts file (depending on your preference). This approach works when using either WebPack or SystemJS. The example below shows routes for home, home/counter, and home/counter/fetch-data. The first and l...
Create a service- import {EventEmitter} from 'angular2/core'; export class NavService { navchange: EventEmitter<number> = new EventEmitter(); constructor() {} emitNavChangeEvent(number) { this.navchange.emit(number); } getNavChangeEmitter() { return...
Add repository repositories { maven { url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/" } } Add in Project Gradle for Chat Functionality dependencies { compile("com.quickblox:quickblox-android-sdk-chat:2.6.1&...
To initialise chat service use: QBChatService.setDebugEnabled(true); // enable chat logging QBChatService.setDefaultPacketReplyTimeout(10000);//set reply timeout in milliseconds for connection's packet. Can be used for events like login, join to dialog to increase waiting response time from ...
Create session with User & Sign In to QuickBlox Chat // Initialise Chat service QBChatService chatService = QBChatService.getInstance(); final QBUser user = new QBUser("garrysantos", "garrysantospass"); QBAuth.createSession(user, new QBEntityCallback<QBSession>()...
CREATE SCHEMA IF NOT EXISTS `backgammon`; USE `backgammon`; DROP TABLE IF EXISTS `user_in_game_room`; DROP TABLE IF EXISTS `game_users`; DROP TABLE IF EXISTS `user_in_game_room`; CREATE TABLE `game_users` ( `user_id` BIGINT NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(255) NOT N...
Create new script section. I call that sa(Script Anonymuos) that meens for me generate JavaScript section with anonymuous function call inside. <script type="text/javascript"> $(function () { $END$ }); </script> If in your project still use old jQuery you c...

Page 99 of 109