awetestlib 0.1.3-x86-mingw32 → 0.1.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/awetestlib.windows.gemspec +1 -1
- data/bin/awetestlib +11 -4
- data/bin/awetestlib-helpers.rb +28 -1
- data/bin/awetestlib-netbeans-setup.rb +39 -0
- data/bin/awetestlib-rubymine-setup.rb +33 -0
- data/images/logo.png +0 -0
- data/lib/awetestlib/html_report.rb +171 -0
- data/lib/{regression → awetestlib}/logging.rb +10 -43
- data/lib/awetestlib/regression/browser.rb +1233 -0
- data/lib/awetestlib/regression/drag_and_drop.rb +379 -0
- data/lib/awetestlib/regression/find.rb +431 -0
- data/lib/awetestlib/regression/legacy.rb +45 -0
- data/lib/awetestlib/regression/page_data.rb +190 -0
- data/lib/awetestlib/regression/runner.rb +306 -0
- data/lib/awetestlib/regression/tables.rb +491 -0
- data/lib/awetestlib/regression/user_input.rb +1256 -0
- data/lib/awetestlib/regression/utilities.rb +895 -0
- data/lib/awetestlib/regression/validations.rb +1184 -0
- data/lib/awetestlib/regression/waits.rb +391 -0
- data/lib/awetestlib/runner.rb +16 -0
- data/lib/awetestlib.rb +4 -4
- data/lib/version.rb +2 -2
- data/setup_samples/sample_netbeans/demo.rb +86 -0
- data/setup_samples/sample_netbeans/nbproject/configs/Demo.properties +2 -0
- data/setup_samples/sample_netbeans/nbproject/private/config.properties +1 -0
- data/setup_samples/sample_netbeans/nbproject/private/configs/Demo.properties +1 -0
- data/setup_samples/sample_netbeans/nbproject/private/private.properties +2 -0
- data/setup_samples/sample_netbeans/nbproject/project.properties +5 -0
- data/setup_samples/sample_netbeans/nbproject/project.xml +13 -0
- data/setup_samples/sample_rubymine/.idea/.name +1 -0
- data/setup_samples/sample_rubymine/.idea/encodings.xml +5 -0
- data/setup_samples/sample_rubymine/.idea/misc.xml +5 -0
- data/setup_samples/sample_rubymine/.idea/modules.xml +9 -0
- data/setup_samples/sample_rubymine/.idea/sample_rubymine.iml +9 -0
- data/setup_samples/sample_rubymine/.idea/scopes/scope_settings.xml +5 -0
- data/setup_samples/sample_rubymine/.idea/vcs.xml +7 -0
- data/setup_samples/sample_rubymine/.idea/workspace.xml +213 -0
- data/setup_samples/sample_rubymine/demo.rb +86 -0
- metadata +44 -19
- data/lib/regression/browser.rb +0 -1259
- data/lib/regression/drag_and_drop.rb +0 -374
- data/lib/regression/find.rb +0 -426
- data/lib/regression/legacy.rb +0 -40
- data/lib/regression/page_data.rb +0 -185
- data/lib/regression/runner.rb +0 -278
- data/lib/regression/tables.rb +0 -486
- data/lib/regression/user_input.rb +0 -1255
- data/lib/regression/utilities.rb +0 -891
- data/lib/regression/validations.rb +0 -1179
- data/lib/regression/waits.rb +0 -387
@@ -0,0 +1,213 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="82173bce-cbe0-4424-b33f-04eac576929d" name="Default" comment="" />
|
5
|
+
<ignored path="sample_rubymine.iws" />
|
6
|
+
<ignored path=".idea/workspace.xml" />
|
7
|
+
<option name="TRACKING_ENABLED" value="true" />
|
8
|
+
<option name="SHOW_DIALOG" value="false" />
|
9
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
10
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
11
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
12
|
+
</component>
|
13
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
14
|
+
<component name="CreatePatchCommitExecutor">
|
15
|
+
<option name="PATCH_PATH" value="" />
|
16
|
+
</component>
|
17
|
+
<component name="DaemonCodeAnalyzer">
|
18
|
+
<disable_hints />
|
19
|
+
</component>
|
20
|
+
<component name="FavoritesManager">
|
21
|
+
<favorites_list name="sample_rubymine" />
|
22
|
+
</component>
|
23
|
+
<component name="ProjectFrameBounds">
|
24
|
+
<option name="x" value="-8" />
|
25
|
+
<option name="y" value="-8" />
|
26
|
+
<option name="width" value="1382" />
|
27
|
+
<option name="height" value="754" />
|
28
|
+
</component>
|
29
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
30
|
+
<OptionsSetting value="true" id="Add" />
|
31
|
+
<OptionsSetting value="true" id="Remove" />
|
32
|
+
<OptionsSetting value="true" id="Checkout" />
|
33
|
+
<OptionsSetting value="true" id="Update" />
|
34
|
+
<OptionsSetting value="true" id="Status" />
|
35
|
+
<OptionsSetting value="true" id="Edit" />
|
36
|
+
<ConfirmationsSetting value="0" id="Add" />
|
37
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
38
|
+
</component>
|
39
|
+
<component name="ProjectReloadState">
|
40
|
+
<option name="STATE" value="0" />
|
41
|
+
</component>
|
42
|
+
<component name="ProjectView">
|
43
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
44
|
+
<flattenPackages />
|
45
|
+
<showMembers />
|
46
|
+
<showModules />
|
47
|
+
<showLibraryContents />
|
48
|
+
<hideEmptyPackages />
|
49
|
+
<abbreviatePackageNames />
|
50
|
+
<autoscrollToSource />
|
51
|
+
<autoscrollFromSource />
|
52
|
+
<sortByType />
|
53
|
+
</navigator>
|
54
|
+
<panes>
|
55
|
+
<pane id="Scope">
|
56
|
+
<subPane subId="Project Files">
|
57
|
+
<PATH>
|
58
|
+
<PATH_ELEMENT USER_OBJECT="Root">
|
59
|
+
<option name="myItemId" value="" />
|
60
|
+
<option name="myItemType" value="" />
|
61
|
+
</PATH_ELEMENT>
|
62
|
+
</PATH>
|
63
|
+
</subPane>
|
64
|
+
</pane>
|
65
|
+
<pane id="ProjectPane">
|
66
|
+
<subPane>
|
67
|
+
<PATH>
|
68
|
+
<PATH_ELEMENT>
|
69
|
+
<option name="myItemId" value="sample_rubymine" />
|
70
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
71
|
+
</PATH_ELEMENT>
|
72
|
+
</PATH>
|
73
|
+
<PATH>
|
74
|
+
<PATH_ELEMENT>
|
75
|
+
<option name="myItemId" value="sample_rubymine" />
|
76
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
77
|
+
</PATH_ELEMENT>
|
78
|
+
<PATH_ELEMENT>
|
79
|
+
<option name="myItemId" value="sample_rubymine" />
|
80
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
81
|
+
</PATH_ELEMENT>
|
82
|
+
</PATH>
|
83
|
+
</subPane>
|
84
|
+
</pane>
|
85
|
+
</panes>
|
86
|
+
</component>
|
87
|
+
<component name="PropertiesComponent">
|
88
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
89
|
+
<property name="recentsLimit" value="5" />
|
90
|
+
</component>
|
91
|
+
<component name="RunManager" selected="Ruby.Demo">
|
92
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
93
|
+
<module name="" />
|
94
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
95
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
96
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
97
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
98
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
99
|
+
<envs />
|
100
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
101
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
102
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
103
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
104
|
+
<method>
|
105
|
+
<option name="RakeTask" enabled="false" />
|
106
|
+
</method>
|
107
|
+
</configuration>
|
108
|
+
<configuration default="false" name="Demo" type="RubyRunConfigurationType" factoryName="Ruby">
|
109
|
+
<module name="sample_rubymine" />
|
110
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-rubygems" />
|
111
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
112
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
113
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
114
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
115
|
+
<envs />
|
116
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
117
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
|
118
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="RUBY-SCRIPT" />
|
119
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="SAMPLE-SCRIPT -b FF" />
|
120
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
121
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
122
|
+
<method />
|
123
|
+
</configuration>
|
124
|
+
<list size="1">
|
125
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.Demo" />
|
126
|
+
</list>
|
127
|
+
</component>
|
128
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
129
|
+
<component name="TaskManager">
|
130
|
+
<task active="true" id="Default" summary="Default task">
|
131
|
+
<changelist id="82173bce-cbe0-4424-b33f-04eac576929d" name="Default" comment="" />
|
132
|
+
<created>1345484410884</created>
|
133
|
+
<updated>1345484410884</updated>
|
134
|
+
</task>
|
135
|
+
<servers />
|
136
|
+
</component>
|
137
|
+
<component name="ToolWindowManager">
|
138
|
+
<frame x="-8" y="-8" width="1382" height="754" extended-state="6" />
|
139
|
+
<editor active="false" />
|
140
|
+
<layout>
|
141
|
+
<window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
142
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
143
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
144
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
|
145
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25417298" sideWeight="0.67096776" order="0" side_tool="false" content_ui="combo" />
|
146
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
147
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
148
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
149
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32903227" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
150
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
151
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
152
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
153
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
154
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
155
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
156
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
157
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
158
|
+
</layout>
|
159
|
+
</component>
|
160
|
+
<component name="VcsContentAnnotationSettings">
|
161
|
+
<option name="myLimit" value="2678400000" />
|
162
|
+
</component>
|
163
|
+
<component name="VcsManagerConfiguration">
|
164
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
165
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
166
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
167
|
+
<option name="myTodoPanelSettings">
|
168
|
+
<value>
|
169
|
+
<are-packages-shown value="false" />
|
170
|
+
<are-modules-shown value="false" />
|
171
|
+
<flatten-packages value="false" />
|
172
|
+
<is-autoscroll-to-source value="false" />
|
173
|
+
</value>
|
174
|
+
</option>
|
175
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
176
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
177
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
178
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
179
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
180
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
181
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
182
|
+
<option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
|
183
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
184
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
185
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
186
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
187
|
+
<option name="SHORT_DIFF_HORISONTALLY" value="true" />
|
188
|
+
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
189
|
+
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
190
|
+
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
191
|
+
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
192
|
+
<option name="CREATE_PATCH_EXPAND_DETAILS_DEFAULT" value="true" />
|
193
|
+
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
194
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
195
|
+
<option name="LAST_COMMIT_MESSAGE" />
|
196
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
197
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
198
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
199
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
200
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
201
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
202
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
203
|
+
<option name="ACTIVE_VCS_NAME" />
|
204
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
205
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
206
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
207
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
208
|
+
</component>
|
209
|
+
<component name="XDebuggerManager">
|
210
|
+
<breakpoint-manager />
|
211
|
+
</component>
|
212
|
+
</project>
|
213
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
module Demo
|
2
|
+
def run
|
3
|
+
browser = open_browser
|
4
|
+
login(browser)
|
5
|
+
test_zoho(browser)
|
6
|
+
end
|
7
|
+
|
8
|
+
def test_account_lookup(browser)
|
9
|
+
mark_testlevel('Account Lookup', 1)
|
10
|
+
browser.image(:title, 'Account Name Lookup').click
|
11
|
+
sleep_for(5)
|
12
|
+
popup = attach_browser_by_url(browser, /Parent/)
|
13
|
+
# TODO: This should be transparent:
|
14
|
+
if @browserAbbrev == "FF"
|
15
|
+
popup = browser
|
16
|
+
end
|
17
|
+
set_textfield_by_name(popup, 'fldValue', 'test')
|
18
|
+
click_button_by_value(popup, 'Go')
|
19
|
+
popup.link(:text, /Test Account/).click
|
20
|
+
#browser = attach_browser_by_url(browser, /ShowHomePage/)
|
21
|
+
#validate_textfield_value_by_name(browser, /Parent Account/, 'Test Account #007')
|
22
|
+
end
|
23
|
+
|
24
|
+
def login(browser)
|
25
|
+
mark_testlevel('Zoho Login', 2)
|
26
|
+
user = "joeklienwatir@gmail.com" #@zohologin.cell(2,2)
|
27
|
+
password = "watir001" #@zohologin.cell(2,3)
|
28
|
+
go_to_url(browser, "https://accounts.zoho.com/login?serviceurl=https://www.zoho.com/&hide_signup=true&css=https://www.zoho.com/css/login.css")
|
29
|
+
#browser.goto("https://accounts.zoho.com/login?serviceurl=https://www.zoho.com/&hide_signup=true&css=https://www.zoho.com/css/login.css")
|
30
|
+
set_textfield_by_name(browser, 'lid', user)
|
31
|
+
set_textfield_by_name(browser, 'pwd', password)
|
32
|
+
click_button_by_value(browser, 'Sign In')
|
33
|
+
go_to_url(browser, url = 'https://crm.zoho.com/crm/ShowHomePage.do')
|
34
|
+
validate_text(browser, 'Welcome joeklienwatir at Software')
|
35
|
+
#click_text(browser, 'Old Version')
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
def navigate_to_crm(browser)
|
40
|
+
mark_testlevel('Navigate to CRM', 1)
|
41
|
+
click_text(browser, 'CRM')
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_zoho(browser)
|
45
|
+
#get_variables("#{@myRoot}/zoho_variables.xls")
|
46
|
+
navigate_to_crm(browser) #In Project Util
|
47
|
+
create_account(browser)
|
48
|
+
#create_blank_new_account(browser)
|
49
|
+
#export_accounts(browser)
|
50
|
+
#import_accounts(browser)
|
51
|
+
#signout(browser)
|
52
|
+
end
|
53
|
+
|
54
|
+
def create_account(browser)
|
55
|
+
mark_testlevel('Create New Account', 3)
|
56
|
+
sleep_for(3)
|
57
|
+
click_link(browser, 'Accounts')
|
58
|
+
sleep_for(3)
|
59
|
+
click_button_by_value(browser, 'New Account')
|
60
|
+
sleep_for(5)
|
61
|
+
# Watir::Waiter::wait_until { browser.text_field(:name, /Account Name/).exist? }
|
62
|
+
# Watir::Waiter::wait_until { browser.text_field(:name, /Account Name/).visible? }
|
63
|
+
set_textfield_by_name(browser, /Account Name/, "Test Account #1")
|
64
|
+
set_textfield_by_name(browser, /Phone/, "415-333-2311")
|
65
|
+
|
66
|
+
test_account_lookup(browser) #In Project Util
|
67
|
+
browser = attach_browser_by_url(browser, /ShowHomePage/)
|
68
|
+
select_option_by_name_and_option_text(browser, /Account Type/, "Analyst")
|
69
|
+
select_option_by_name_and_option_text(browser, /Industry/, "ASP")
|
70
|
+
set_textfield_by_name(browser, /Billing Street/, "201 Main St")
|
71
|
+
set_textfield_by_name(browser, /Billing City/, "San Francisco")
|
72
|
+
set_textfield_by_name(browser, /Billing State/, "CA")
|
73
|
+
set_textfield_by_name(browser, /Billing Code/, "94102")
|
74
|
+
set_textfield_by_name(browser, /Billing Country/, "USA")
|
75
|
+
#browser.cell(:text, 'Billing to Shipping').click
|
76
|
+
click_button_by_id(browser, 'copyAddress')
|
77
|
+
sleep_for(5)
|
78
|
+
click_button_by_value(browser, 'Save')
|
79
|
+
|
80
|
+
sleep_for(8)
|
81
|
+
#wait_until_by_text(browser, 'Test Account #1')
|
82
|
+
validate_text(browser, "Test Account #1")
|
83
|
+
validate_text(browser, "random")
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awetestlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Anthony Woo
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-08-
|
19
|
+
date: 2012-08-23 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: watir-webdriver
|
@@ -144,12 +144,14 @@ dependencies:
|
|
144
144
|
requirement: &id009 !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
147
|
-
- - "
|
147
|
+
- - "="
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
hash:
|
149
|
+
hash: 11
|
150
150
|
segments:
|
151
151
|
- 0
|
152
|
-
|
152
|
+
- 6
|
153
|
+
- 6
|
154
|
+
version: 0.6.6
|
153
155
|
type: :runtime
|
154
156
|
version_requirements: *id009
|
155
157
|
- !ruby/object:Gem::Dependency
|
@@ -263,7 +265,9 @@ executables:
|
|
263
265
|
- AutoItX3.dll
|
264
266
|
- awetestlib
|
265
267
|
- awetestlib-helpers.rb
|
268
|
+
- awetestlib-netbeans-setup.rb
|
266
269
|
- awetestlib-regression-setup.rb
|
270
|
+
- awetestlib-rubymine-setup.rb
|
267
271
|
extensions: []
|
268
272
|
|
269
273
|
extra_rdoc_files: []
|
@@ -279,27 +283,48 @@ files:
|
|
279
283
|
- bin/AutoItX3.dll
|
280
284
|
- bin/awetestlib
|
281
285
|
- bin/awetestlib-helpers.rb
|
286
|
+
- bin/awetestlib-netbeans-setup.rb
|
282
287
|
- bin/awetestlib-regression-setup.rb
|
288
|
+
- bin/awetestlib-rubymine-setup.rb
|
283
289
|
- ext/Rakefile
|
284
290
|
- ext/mkrf_conf.rb
|
291
|
+
- images/logo.png
|
285
292
|
- lib/awetestlib.rb
|
293
|
+
- lib/awetestlib/html_report.rb
|
294
|
+
- lib/awetestlib/logging.rb
|
295
|
+
- lib/awetestlib/regression/browser.rb
|
296
|
+
- lib/awetestlib/regression/drag_and_drop.rb
|
297
|
+
- lib/awetestlib/regression/find.rb
|
298
|
+
- lib/awetestlib/regression/legacy.rb
|
299
|
+
- lib/awetestlib/regression/page_data.rb
|
300
|
+
- lib/awetestlib/regression/runner.rb
|
301
|
+
- lib/awetestlib/regression/tables.rb
|
302
|
+
- lib/awetestlib/regression/user_input.rb
|
303
|
+
- lib/awetestlib/regression/utilities.rb
|
304
|
+
- lib/awetestlib/regression/validations.rb
|
305
|
+
- lib/awetestlib/regression/waits.rb
|
306
|
+
- lib/awetestlib/runner.rb
|
286
307
|
- lib/patches/README
|
287
308
|
- lib/patches/firewatir.rb
|
288
309
|
- lib/patches/watir.rb
|
289
|
-
- lib/regression/browser.rb
|
290
|
-
- lib/regression/drag_and_drop.rb
|
291
|
-
- lib/regression/find.rb
|
292
|
-
- lib/regression/legacy.rb
|
293
|
-
- lib/regression/logging.rb
|
294
|
-
- lib/regression/page_data.rb
|
295
|
-
- lib/regression/runner.rb
|
296
|
-
- lib/regression/tables.rb
|
297
|
-
- lib/regression/user_input.rb
|
298
|
-
- lib/regression/utilities.rb
|
299
|
-
- lib/regression/validations.rb
|
300
|
-
- lib/regression/waits.rb
|
301
310
|
- lib/version.rb
|
302
311
|
- rdoc_test.bat
|
312
|
+
- setup_samples/sample_netbeans/demo.rb
|
313
|
+
- setup_samples/sample_netbeans/nbproject/configs/Demo.properties
|
314
|
+
- setup_samples/sample_netbeans/nbproject/private/config.properties
|
315
|
+
- setup_samples/sample_netbeans/nbproject/private/configs/Demo.properties
|
316
|
+
- setup_samples/sample_netbeans/nbproject/private/private.properties
|
317
|
+
- setup_samples/sample_netbeans/nbproject/project.properties
|
318
|
+
- setup_samples/sample_netbeans/nbproject/project.xml
|
319
|
+
- setup_samples/sample_rubymine/.idea/.name
|
320
|
+
- setup_samples/sample_rubymine/.idea/encodings.xml
|
321
|
+
- setup_samples/sample_rubymine/.idea/misc.xml
|
322
|
+
- setup_samples/sample_rubymine/.idea/modules.xml
|
323
|
+
- setup_samples/sample_rubymine/.idea/sample_rubymine.iml
|
324
|
+
- setup_samples/sample_rubymine/.idea/scopes/scope_settings.xml
|
325
|
+
- setup_samples/sample_rubymine/.idea/vcs.xml
|
326
|
+
- setup_samples/sample_rubymine/.idea/workspace.xml
|
327
|
+
- setup_samples/sample_rubymine/demo.rb
|
303
328
|
- test/create_zoho.rb
|
304
329
|
- test/create_zoho_account1.rb
|
305
330
|
- test/create_zoho_account2.rb
|