Skip to content

Commit 524cedb

Browse files
committed
gitpod and code update
1 parent 67f720c commit 524cedb

File tree

7 files changed

+61
-12
lines changed

7 files changed

+61
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Gemfile.lock

.gitpod.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM gitpod/workspace-full
2+
3+
USER gitpod
4+
5+
# Install custom tools, runtime, etc. using apt-get
6+
# For example, the command below would install "bastet" - a command line tetris clone:
7+
#
8+
# RUN sudo apt-get -q update && \
9+
# sudo apt-get install -yq bastet && \
10+
# sudo rm -rf /var/lib/apt/lists/*
11+
#
12+
# More information: https://www.gitpod.io/docs/config-docker/

.gitpod.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
5+
ports:
6+
- port: 3000
7+
onOpen: open-preview
8+
9+
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
10+
tasks:
11+
- init: echo 'init script' # runs during prebuild
12+
command: echo 'start script'

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'http://rubygems.org'
2+
3+
gem 'selenium-webdriver'
4+
gem 'test-unit'
5+
gem 'parseconfig', '~> 1.0', '>= 1.0.8'

Gemfile.lock

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
childprocess (3.0.0)
5+
parseconfig (1.0.8)
6+
power_assert (1.2.0)
7+
rubyzip (2.3.0)
8+
selenium-webdriver (3.142.7)
9+
childprocess (>= 0.5, < 4.0)
10+
rubyzip (>= 1.2.2)
11+
test-unit (3.3.7)
12+
power_assert
13+
14+
PLATFORMS
15+
ruby
16+
17+
DEPENDENCIES
18+
parseconfig (~> 1.0, >= 1.0.8)
19+
selenium-webdriver
20+
test-unit
21+
22+
BUNDLED WITH
23+
2.1.4

LambdaTest.rb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class AdvanceTest < Test::Unit::TestCase
88
def setup
99
config = ReadConfig.new()
1010
lt_user = ENV['LT_USERNAME']
11-
lt_appkey = ENV['LT_APPKEY']
11+
lt_appkey = ENV['LT_ACCESS_KEY']
1212
lt_os = ENV['LT_OPERATING_SYSTEM']
1313
lt_browser = ENV['LT_BROWSER']
1414
lt_browser_version = ENV['LT_BROWSER_VERSION']
1515
if(lt_user == "" || lt_user == nil)
1616
lt_user = config.getDetails('LT_USERNAME')
1717
end
1818
if(lt_appkey == "" || lt_appkey == nil)
19-
lt_appkey = config.getDetails('LT_APPKEY')
19+
lt_appkey = config.getDetails('LT_ACCESS_KEY')
2020
end
2121
if(lt_browser == "" || lt_browser == nil)
2222
lt_browser = config.getDetails('LT_BROWSER')
@@ -32,11 +32,7 @@ def setup
3232
:version => lt_browser_version,
3333
:platform => lt_os,
3434
:name => "RubyRSpecTestSample",
35-
:build => "LambdaTestSampleApp",
36-
:network => true,
37-
:visual => true,
38-
:video => true,
39-
:console => true
35+
:build => "LambdaTestSampleApp"
4036
}
4137
puts (caps)
4238
@driver = Selenium::WebDriver.for(:remote,
@@ -53,11 +49,11 @@ def test_Login
5349

5450
#Click on First Checkbox
5551
fCheckbox = @driver.find_element(:name, 'li1')
56-
fCheckbox.submit
52+
fCheckbox.click
5753

5854
#Click on Second Checkbox
5955
sCheckbox = @driver.find_element(:name, 'li2')
60-
sCheckbox.submit
56+
sCheckbox.click
6157

6258
#Enter Item Name
6359
itemNameInput = @driver.find_element(:id, 'sampletodotext')

config.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
LT_USERNAME=YOUR LAMBDATEST USERNAME
2-
LT_APPKEY=YOUR LAMBDATEST ACCESSKEY
3-
LT_OPERATING_SYSTEM = win10
2+
LT_ACCESS_KEY=YOUR LAMBDATEST ACCESSKEY
3+
LT_OPERATING_SYSTEM = Windows 10
44
LT_BROWSER=chrome
5-
LT_BROWSER_VERSION=63.0
5+
LT_BROWSER_VERSION=latest
66

77

0 commit comments

Comments
 (0)