View gist:2d07f589028a8c7aac3bc7394198519f
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box_download_insecure = true
config.vm.box = "ubuntu/xenial64"
View In-build-selenium-server-with-dynamic-port-allocation-maven-profile.xml
<profile>
<id>selenium-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>reserve-selenium-port</id>
View settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>home</id>
<repositories>
<repository>
<id>smartbear</id>
View run-tests.sh
#!/bin/bash
library=$1
suite=$2
coverage=$3
if [ ! -d ui/$library ]; then
echo "Directory ui/$library does not exist"
exit 1
fi
View gist:892508ff077ebff571b9d5f17c5a0f89
indexOf = function(collection, condition){
if(collection && Array.isArray(collection) && condition){
for(var i = 0; i < collection.length; i+=1){
if(condition(collection[i])){
return i;
}
}
}
return -1;
},
View Groovy-Higher-order-functions.groovy
class Person {
String name
int age
Gender gender
enum Gender {
MALE, FEMALE, UNKNOWN
}
}
def persons = [new Person(name: 'Bob', age: 25, gender: Person.Gender.MALE),
View gist:2cd057e0878b5978a038
Underställ
- Överdel
- Underdel
Ytterplagg
- Skaljacka // Vindtät iallafall
- Täckbyxor
Övrigt
- Handskar // som inte drar till sig snö
View gist:796dd06fb2f5732bada6
private void verifyObjectIsValid() {
Object object = test.getFacade().getObject();
if (object.getObject() == null || object.getAnotherObject() == null) {
throw new IllegalStateException("Object: Invalid object: object=" + object.getAnotherObject()
+ ", Load Profile: " + object.getObject());
}
}
View Gewdis!
@Override
public ProjectBlueprint scenario(ScenarioBlueprint... scenarioBlueprints) {
Collections.addAll(this.scenarios, scenarioBlueprints);
return this;
}
View gist:0dcb7580610320e34abd
validator: { v ->
try{
v = parseInt(v)
} catch (NumberFormatException e) {
field.background = Color.RED
field.revalidate()
return false
}
if (v >= 0 && v < MAX_VALUE) {
field.background = Color.WHITE