Tutorial by Examples

It is possible to omit the on <sensitivity_list> and the for <timeout> clauses, like in: wait until CONDITION; which is equivalent to: wait on LIST until CONDITION; where LIST is the list of all signals that appear in CONDITION. It is also equivalent to: loop ...
AWS Codecommit can be used as storage for private GIT repositories. The setup involves a few steps, assuming you have a valid AWS account already. Sign up for AWS Codecommit. Currently only region us-east-1 is available. Create a IAM user who will have access to the repositories, eg codecommit-u...
Atlassian SourceTree is a visual tool for Mac and Windows to manage source code repositories. This can be used with Codecommit as a remote repository but need to add an extra configuration option to the local repository in SourceTree to be able to connect with codecommit. First, setup Codecommit fo...
DECLARE -- declare a variable message varchar2(20); BEGIN -- assign value to variable message := 'HELLO WORLD'; -- print message to screen DBMS_OUTPUT.PUT_LINE(message); END; /
Full instructions can be found here. Install the JDK. Set the Java Environment variable. export JAVA_HOME=/usr/local/java/jdk1.8.0_102 echo $JAVA_HOME /usr/local/java/jdk1.8.0_102 export PATH=$PATH:$JAVA_HOME/bin/ echo $PATH ...:/usr/local/java/jdk1.8.0_102/bin/ Install Scala....
public static final int PLACE_AUTOCOMPLETE_FROM_PLACE_REQUEST_CODE=1; public static final int PLACE_AUTOCOMPLETE_TO_PLACE_REQUEST_CODE=2; fromPlaceEdit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ...
<cffunction name="getUserById" access="public" returntype="query"> <cfargument name="userId" type="numeric" required="yes" hint="The ID of the user"> <cfquery name="local.qryGetUser" datasource...
Function Calls <!--- Load the user object based on the component path. ---> <cfset local.user = new com.User() /> <cfset local.allUsers = user.getAllUsers()> <cfset local.specificUser = user.getUserIdFromQry(qry = local.allUsers, userId = 1)> User.cfc <cfcompone...
apply plugin: 'com.android.library' apply plugin: 'maven' apply plugin: 'maven-publish' android { compileSdkVersion 21 buildToolsVersion "21.1.2" repositories { mavenCentral() } defaultConfig { minSdkVersion 9 targetSdkVersion 21 versionCode 1 version...
At it's most basic level, acceptance testing is essentially black-box testing, which is fundamentally concerned with testing inputs and outputs of a closed system. As such, there are three essential features to acceptance testing: locating a resource, reading data, and writing data. When it comes to...
Nightwatch supports creating custom commands that can simulating keystrokes, mouse clicks, and other inputs. A custom command can be chained with other Nightwatch commands, like so: module.exports = { "Login App" : function (client) { client .url("http://localhost:300...
Since Nightwatch has access to the browser console, it's possible to inspect client side objects using the .execute() API. In the following example, we're checking the Session object for a particular session variable. First, we begin by creating the file ./tests/nightwatch/api/meteor/checkSession...
To upload a file, you'll first need to create a /data directory, and add the file you'll want to upload. tests/nightwatch/data/IM-0001-1001.dcm Your form will need an input with type of file. (Some people don't like the styling options this input provides; and a common pattern is to make this in...
Page Objects are similar to Custom Commands; except they are collections of custom commands that are associated with a specific UI component. This works extremely well with modern component based design, such as in React. module.exports = { url: 'http://localhost:3000/login', commands: [{ ...
Suppose we have container "CustomersContainer" which connects a "Customers" dumb component to the Redux store. In index.js: import { Component }, React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redu...
What and Why ? Asp.Net’s Web API2 is the latest version of Web API. It is an easy way to implement a RESTful web service using all of the goodness that the Asp.Net framework provides. Once you understand the basic principles of REST, then a Asp.net Web API2 will be very easy to implement. Web API2...
Cgo enables the creation of Go packages that call C code. To use cgo write normal Go code that imports a pseudo-package "C". The Go code can then refer to types such as C.int, or functions such as C.Add. The import of "C" is immediately preceded by a comment, that comment, call...
In [1]: import pandas as pd In [2]: df = pd.DataFrame(columns = ['A', 'B', 'C']) In [3]: df Out[3]: Empty DataFrame Columns: [A, B, C] Index: [] Appending a row by a single column value: In [4]: df.loc[0, 'A'] = 1 In [5]: df Out[5]: A B C 0 1 NaN NaN Appending a ...
Enable validation using annotations in app/config/config.yml file framework: validation: { enable_annotations: true } Create an Entity in AppBundle/Entity directory. The validations are made with @Assert annotations. <?php # AppBundle/Entity/Car.php namespace AppBundle\Ent...
Create an Entity in AppBundle/Entity directory. You can do this manually, or by using Symfony's command php bin/console doctrine:generate:entity and filling in the required information in each step. You must specify yml option at Configuration format (yml, xml, php or annotation) step. <?php...

Page 885 of 1336