Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Rafael Carvalho rafaelcs

🏠
Working from home
Block or report user

Report or block rafaelcs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View appium_logs.sh
============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.0.1, py-1.8.0, pluggy-0.12.0
rootdir: /Users/rafaelcarvalho/Desktop/projects/open-ios/open-test-automation
plugins: allure-pytest-2.7.1
collected 5 items
tests/test_login.py [HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{"platformName":"iOS","appium:platformVersion":"12.4","appium:deviceName":"iPhone X","appium:automationName":"XCUITest","appium:useNewWDA":true,"appium:usePrebuiltWDA":false,"appium:app":"/var/folders/sx/qwd0l4kj15g17_m1p1g1nb7r0000gn/T/__archive__388107363/hashtagopen DEV.xcarchive/Products/Applications/hashtagopen DEV.app"}]},"desiredCapabilities":{"platformName":"iOS","platformVersion":"12.4","deviceName":"iPhone X","automationName":"XCUITest","useNewWDA":true,"usePrebuiltWDA":false,"app":"/var/folders/sx/qwd0l4kj15g17_m1p1g1nb7r0000gn/T/__archive__388107363/hashtagopen DEV.xcarchive/Products/Applications/hashtagopen DEV.app"}}
[debug] [W3C] Cal
@rafaelcs
rafaelcs / settings.json
Created Jan 12, 2019
My user settings file to VS Code
View settings.json
{
"editor.fontSize": 14,
"terminal.external.osxExec": "iTerm.app",
"terminal.explorerKind": "external",
"terminal.integrated.fontFamily": "Meslo LG M for Powerline",
"terminal.integrated.fontSize": 12,
"python.pythonPath": "env/bin/python3",
"editor.autoIndent": true,
"workbench.editor.enablePreview": false,
"workbench.settings.openDefaultSettings": false,
@rafaelcs
rafaelcs / buddybuild_postbuild.sh
Created Jan 11, 2019
File to integrate UI tests with Appium on Buddybuild
View buddybuild_postbuild.sh
#!/usr/bin/env bash
chruby 2.5.1
echo $'=== Building App for Simulator ==='
APP_ID_FOLDER='/tmp/sandbox/'$BUDDYBUILD_APP_ID'/bbtest'
xcodebuild -project "[your_app_name].xcodeproj" \
-scheme "$BUDDYBUILD_SCHEME" \
@rafaelcs
rafaelcs / conf.js
Last active May 11, 2017
Protractor conf.js
View conf.js
'use strict';
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
directConnect: true,
specs: ['tests/UI/specs/*.js'],
//seleniumAddress: 'http://localhost:4445/wd/hub',
@rafaelcs
rafaelcs / table.html
Created Feb 15, 2017
Apenas a primeira página da tabela
View table.html
<table id="holder-fee" class="list wide ">
<thead>
<tr>
<th class="header">Name</th>
<th class="header">Category</th>
<th class="header">Charging Unit</th>
<th class="header">Cost</th>
<th class="header">Aditional Cost</th>
<th class="header">Date Modified</th>
@rafaelcs
rafaelcs / fill_form.py
Created Nov 30, 2016
Fill form > save infos and assert new values
View fill_form.py
def update_contacts_form(self):
enter_twitter = "http://" + fake.text(max_nb_chars=13) + "com"
enter_facebook = fake.url()
enter_email = fake.free_email()
enter_phone_cell = fake.phone_number()
enter_home_phone = fake.phone_number()
enter_home_ext_phone = fake.building_number()
enter_work_phone = fake.phone_number()
enter_work_ext_phone = fake.building_number()
View gist:d95b6d425658e08df917c6b79f1e605f
Title: Add product for the cart
Type of the Test: Functional Test
Priority: High
Action: After access the product link, click on “add a cart” button
Expected result: Is shown notification on the cart icon and product is added
View gist:a27be25df8b2068f0c9c5a608f644b0d
from selenium import webdriver
from base import Page
from locators import *
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.support.ui import Select
import os
View gist:46f22c7f112bdcdbac00
info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"9.2","deviceName":"iPhone 4s","app":"/Users/rafaelcarvalho1santos/Desktop/Projetos/appium-pytest/app/TestApp.app.zip","platformName":"iOS"}}
info: Client User-Agent string: Python-urllib/2.7
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
@rafaelcs
rafaelcs / Example_SeleniumC#
Last active Aug 29, 2015
Help user Selenium_groups - Structure test
View Example_SeleniumC#
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Interactions;
using System.Collections.ObjectModel;
You can’t perform that action at this time.