Skip to content

Instantly share code, notes, and snippets.

@canimus
canimus / perforchestor-jmeter.xml
Created July 7, 2013 19:31
Perforchestor - Jmeter XML Supported Format
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<httpSample t="214" lt="214" ts="1320655216022" s="true" lb="HomePage" rc="200" rm="OK" tn="bp01_1 1-1" dt="text" by="822" ng="1" na="1" hn="load_injector"/>
<httpSample t="919" lt="919" ts="1320655216443" s="true" lb="Login" rc="200" rm="OK" tn="bp01_1 1-1" dt="text" by="2953" ng="1" na="1" hn="load_injector">
<assertionResult>
<name>Screen_Assertion</name>
<failure>false</failure>
<error>false</error>
<failureMessage>Login successful</failureMessage>
</assertionResult>
@canimus
canimus / linkedin.rb
Last active August 29, 2015 14:22
Hackaton 1 Automation - Planit Perth
require 'watir'
require 'selenium-webdriver'
require 'base64'
require 'colorize'
require 'awesome_print'
profile = Selenium::WebDriver::Firefox::Profile.new
# 2 means custom folder
profile['browser.download.folderList'] = 2
#Specify the custom download folder
public static void main(String[] args) throws IOException {
// Setup firefox binary to start in Xvfb
String Xport = System.getProperty(
"lmportal.xvfb.id", ":1");
final File firefoxPath = new File(System.getProperty(
"lmportal.deploy.firefox.path", "/usr/bin/firefox"));
FirefoxBinary firefoxBinary = new FirefoxBinary(firefoxPath);
firefoxBinary.setEnvironmentProperty("DISPLAY", Xport);
@canimus
canimus / thread.java
Created June 4, 2015 15:22
thread.java
public class ThreadExample {
public static void main(String[] args){
System.out.println(Thread.currentThread().getName());
for(int i=0; i<10; i++){
new Thread("" + i){
public void run(){
System.out.println("Thread: " + getName() + " running");
}
}.start();

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@canimus
canimus / logstash-tomcat.rb
Created August 1, 2015 02:20
A parser for tomcat log files
input {
stdin {}
# file {
# path => ["/Volumes/VM/planit/1_customers/ecu/BB_logs/app_p2/archives/logs/tomcat/access/bb-access-log.*.txt" ]
# start_position => "beginning"
# }
}
filter {
grok {
curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE racwa"
curl -i -XPOST 'http://localhost:8086/write?db=racwa' --data-binary @influx.line
curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=racwa" --data-urlencode "q=SELECT value FROM cache_on WHERE name='/'"
cat test.tsv | awk -F"\t" '{print "cache_on,client=racwa,region=ap-southwest-2 response="$1",latency="$2",status="$4",name=\""$5"\",code="$6",msg=\""$7"\",user=\""$8"\",bytes="$10",group="$11",active="$12",host=\""$13"\" "$3"000000"}' > influx.line
@canimus
canimus / new_box.sh
Last active October 13, 2015 14:01
Steps to create a new vagrant box from a base box
# Initialize Vagrantfile from base box
vagrant init ubuntu/trusty64
# Startup the box
vagrant up
# SSH to the box
vagrant ssh
# Update software
---
title: "ECU - Performance Test / Notifications"
author: "Herminio Vazquez"
date: "9 March 2016"
output: html_document
---
## Introduction
The following statistical analysis identifies discrepancies in the statistics obtained during the performance test executions of business scenarios in ECU for the Blackboard Notifications Performance Testing Cycle, conducted by Planit Software Testing to identify the behaviour identified in the production environment.
---
title: "ECU - Performance Test / Notifications"
author: "Herminio Vazquez"
date: "9 March 2016"
output: html_document
---
## Introduction
The following statistical analysis identifies discrepancies in the statistics obtained during the performance test executions of business scenarios in ECU for the Blackboard Notifications Performance Testing Cycle, conducted by Planit Software Testing to identify the behaviour identified in the production environment.