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
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
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 "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
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
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
require 'net/imap' | |
class TestData | |
def initialize() | |
@emailBase = "username" | |
@emailSup = "gmail.com" | |
@password = "password" | |
@emails = "" | |
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
require 'capybara/dsl' | |
include Capybara::DSL | |
Capybara.default_driver = :selenium | |
visit "http://www.amazon.com/" | |
# the screen size will be fixed as the following resolution | |
# then navigation bar is expected to fill full size of header. | |
# if there is a scroll bar, its width shoul be subtracted as 15px. |
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: New member | |
As A user | |
I Want to become member | |
So That I buy something | |
Background: User open sign-up page | |
Given I go to home page | |
When I click "sign-up button" | |
@javascript |
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 org.python.antlr.ast.Str; | |
import org.python.core.PyObject; | |
import org.python.util.PythonInterpreter; | |
public class ProjectName{ | |
public String createEmail() { | |
PythonInterpreter python = new PythonInterpreter(); | |
// full path of the python file | |
python.execfile("D:\\workspace\\pojectname\\src\\com\\base\\test_data.py"); |