This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Facebook Login | |
| As An anonymous user | |
| I Want to login the webpage | |
| So That I can buy anything | |
| Background: Member should open home page | |
| Given I go to home page | |
| @javascript | |
| Scenario: Member should be able to login with Facebook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parser.add_option( | |
| '-H', '--host', | |
| dest="host", | |
| default=None, | |
| help="Host to load test in the following format: http://10.21.32.33" | |
| ) | |
| parser.add_option( | |
| '--web-host', | |
| dest="web_host", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "Capybara" | |
| require "rspec" | |
| require 'capybara/poltergeist' | |
| include Capybara::DSL | |
| Capybara.default_driver = :poltergeist | |
| Capybara.register_driver :poltergeist do |app| | |
| options = { | |
| :js_errors => true, | |
| :timeout => 120, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Login feature | |
| Background: User should open the application | |
| Given I go to login page | |
| Scenario: As a user I can see login page | |
| Then I should see login page | |
| @t | |
| Scenario: As a in-valid user I can see error message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'calabash-android/calabash_steps' | |
| ---------------------------------------------------------- | |
| ---------------------- GIVEN --------------------------- | |
| ---------------------------------------------------------- | |
| Given(/^I open the application$/) do | |
| wait_for(180) {element_exists("button id:'submit'")} | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Headless browser option | |
| browser: | |
| phantomjs: "phantomjs" | |
| #slimerjs: "slimerjs" | |
| #If you want to have multiple snapping files, set the file name here | |
| snap_file: "javascript/snap.js" | |
| # Type the name of the directory that shots will be stored in | |
| directory: 'shots' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~ ab -n 5000 -c 100 http://10.0.2.85:8080/id/540dae3162c7744fbb000004 | |
| This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking 10.0.2.85 (be patient) | |
| Completed 500 requests | |
| Completed 1000 requests | |
| Completed 1500 requests | |
| Completed 2000 requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "py/object":"huxley.run.Test", | |
| "screen_size":{ | |
| "py/tuple":[ | |
| 1024, | |
| 768 | |
| ] | |
| }, | |
| "steps":[ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/P/m/android-automation (master ⚡=) calabash-android run latest.apk features ADB_DEVICE_ARG=192.168.56.101:5555 | |
| Feature: Splash Screen | |
| As A user | |
| I Want to see splash screen | |
| So That I can have an idea about the app in advance. | |
| Background: User should open the application # features/M001_splash_screen.feature:6 | |
| android.util.AndroidException: INSTRUMENTATION_FAILED: com.arkony.maidan.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner | |
| at com.android.commands.am.Am.runInstrument(Am.java:865) | |
| at com.android.commands.am.Am.onRun(Am.java:282) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from appium import webdriver | |
| desired_caps = {} | |
| desired_caps['platformName'] = 'Android' | |
| desired_caps['platformVersion'] = '4.2' | |
| desired_caps['deviceName'] = 'Samsung Galaxy S5' | |
| desired_caps['app'] = os.path.join('<project-path>/calabash_android_automation/sampleAndroidProjectToAutomate.apk') | |
| driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) |