awetestlib 0.1.2 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +55 -0
- data/awetestlib.windows.gemspec +1 -1
- data/awetestlib_osx.gemspec +1 -0
- data/bin/AutoItX3.dll +0 -0
- data/bin/awetestlib +23 -3
- data/bin/awetestlib-helpers.rb +39 -0
- data/bin/awetestlib-netbeans-setup.rb +39 -0
- data/bin/awetestlib-regression-setup.rb +16 -0
- data/bin/awetestlib-rubymine-setup.rb +33 -0
- data/images/logo.png +0 -0
- data/lib/awetestlib.rb +4 -4
- data/lib/awetestlib/html_report.rb +171 -0
- data/lib/{regression → awetestlib}/logging.rb +13 -46
- 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 +307 -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/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 +64 -17
- 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 @@
|
|
1
|
+
config=Demo
|
@@ -0,0 +1 @@
|
|
1
|
+
application.args=SAMPLE-SCRIPT -b FF
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project xmlns="http://www.netbeans.org/ns/project/1">
|
3
|
+
<type>org.netbeans.modules.ruby.rubyproject</type>
|
4
|
+
<configuration>
|
5
|
+
<data xmlns="http://www.netbeans.org/ns/ruby-project/1">
|
6
|
+
<name>Netbeans</name>
|
7
|
+
<source-roots>
|
8
|
+
<root id="src.dir"/>
|
9
|
+
</source-roots>
|
10
|
+
<test-roots/>
|
11
|
+
</data>
|
12
|
+
</configuration>
|
13
|
+
</project>
|
@@ -0,0 +1 @@
|
|
1
|
+
sample_rubymine
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/sample_rubymine.iml" filepath="$PROJECT_DIR$/.idea/sample_rubymine.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager">
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
5
|
+
<orderEntry type="inheritedJdk" />
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
7
|
+
</component>
|
8
|
+
</module>
|
9
|
+
|
@@ -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: ruby
|
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
|
@@ -182,10 +182,31 @@ dependencies:
|
|
182
182
|
version: "0"
|
183
183
|
type: :runtime
|
184
184
|
version_requirements: *id011
|
185
|
+
- !ruby/object:Gem::Dependency
|
186
|
+
name: json
|
187
|
+
prerelease: false
|
188
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
189
|
+
none: false
|
190
|
+
requirements:
|
191
|
+
- - "="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
hash: 11
|
194
|
+
segments:
|
195
|
+
- 1
|
196
|
+
- 4
|
197
|
+
- 6
|
198
|
+
version: 1.4.6
|
199
|
+
type: :runtime
|
200
|
+
version_requirements: *id012
|
185
201
|
description: Awetest DSL for automated testing of browser-based applications.
|
186
202
|
email: patrick@3qilabs.com
|
187
203
|
executables:
|
204
|
+
- AutoItX3.dll
|
188
205
|
- awetestlib
|
206
|
+
- awetestlib-helpers.rb
|
207
|
+
- awetestlib-netbeans-setup.rb
|
208
|
+
- awetestlib-regression-setup.rb
|
209
|
+
- awetestlib-rubymine-setup.rb
|
189
210
|
extensions: []
|
190
211
|
|
191
212
|
extra_rdoc_files: []
|
@@ -194,31 +215,56 @@ files:
|
|
194
215
|
- .gitattributes
|
195
216
|
- .gitignore
|
196
217
|
- AwetestLib Instructions.rtf
|
218
|
+
- README.md
|
197
219
|
- awetestlib.gemspec
|
198
220
|
- awetestlib.windows.gemspec
|
199
221
|
- awetestlib_notes.txt
|
200
222
|
- awetestlib_osx.gemspec
|
223
|
+
- bin/AutoItX3.dll
|
201
224
|
- bin/awetestlib
|
225
|
+
- bin/awetestlib-helpers.rb
|
226
|
+
- bin/awetestlib-netbeans-setup.rb
|
227
|
+
- bin/awetestlib-regression-setup.rb
|
228
|
+
- bin/awetestlib-rubymine-setup.rb
|
202
229
|
- ext/Rakefile
|
203
230
|
- ext/mkrf_conf.rb
|
231
|
+
- images/logo.png
|
204
232
|
- lib/awetestlib.rb
|
233
|
+
- lib/awetestlib/html_report.rb
|
234
|
+
- lib/awetestlib/logging.rb
|
235
|
+
- lib/awetestlib/regression/browser.rb
|
236
|
+
- lib/awetestlib/regression/drag_and_drop.rb
|
237
|
+
- lib/awetestlib/regression/find.rb
|
238
|
+
- lib/awetestlib/regression/legacy.rb
|
239
|
+
- lib/awetestlib/regression/page_data.rb
|
240
|
+
- lib/awetestlib/regression/runner.rb
|
241
|
+
- lib/awetestlib/regression/tables.rb
|
242
|
+
- lib/awetestlib/regression/user_input.rb
|
243
|
+
- lib/awetestlib/regression/utilities.rb
|
244
|
+
- lib/awetestlib/regression/validations.rb
|
245
|
+
- lib/awetestlib/regression/waits.rb
|
246
|
+
- lib/awetestlib/runner.rb
|
205
247
|
- lib/patches/README
|
206
248
|
- lib/patches/firewatir.rb
|
207
249
|
- lib/patches/watir.rb
|
208
|
-
- lib/regression/browser.rb
|
209
|
-
- lib/regression/drag_and_drop.rb
|
210
|
-
- lib/regression/find.rb
|
211
|
-
- lib/regression/legacy.rb
|
212
|
-
- lib/regression/logging.rb
|
213
|
-
- lib/regression/page_data.rb
|
214
|
-
- lib/regression/runner.rb
|
215
|
-
- lib/regression/tables.rb
|
216
|
-
- lib/regression/user_input.rb
|
217
|
-
- lib/regression/utilities.rb
|
218
|
-
- lib/regression/validations.rb
|
219
|
-
- lib/regression/waits.rb
|
220
250
|
- lib/version.rb
|
221
251
|
- rdoc_test.bat
|
252
|
+
- setup_samples/sample_netbeans/demo.rb
|
253
|
+
- setup_samples/sample_netbeans/nbproject/configs/Demo.properties
|
254
|
+
- setup_samples/sample_netbeans/nbproject/private/config.properties
|
255
|
+
- setup_samples/sample_netbeans/nbproject/private/configs/Demo.properties
|
256
|
+
- setup_samples/sample_netbeans/nbproject/private/private.properties
|
257
|
+
- setup_samples/sample_netbeans/nbproject/project.properties
|
258
|
+
- setup_samples/sample_netbeans/nbproject/project.xml
|
259
|
+
- setup_samples/sample_rubymine/.idea/.name
|
260
|
+
- setup_samples/sample_rubymine/.idea/encodings.xml
|
261
|
+
- setup_samples/sample_rubymine/.idea/misc.xml
|
262
|
+
- setup_samples/sample_rubymine/.idea/modules.xml
|
263
|
+
- setup_samples/sample_rubymine/.idea/sample_rubymine.iml
|
264
|
+
- setup_samples/sample_rubymine/.idea/scopes/scope_settings.xml
|
265
|
+
- setup_samples/sample_rubymine/.idea/vcs.xml
|
266
|
+
- setup_samples/sample_rubymine/.idea/workspace.xml
|
267
|
+
- setup_samples/sample_rubymine/demo.rb
|
222
268
|
- test/create_zoho.rb
|
223
269
|
- test/create_zoho_account1.rb
|
224
270
|
- test/create_zoho_account2.rb
|
@@ -256,9 +302,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
302
|
requirements: []
|
257
303
|
|
258
304
|
rubyforge_project:
|
259
|
-
rubygems_version: 1.8.
|
305
|
+
rubygems_version: 1.8.17
|
260
306
|
signing_key:
|
261
307
|
specification_version: 3
|
262
308
|
summary: Awetest DSL for automated testing of browser-based applications.
|
263
309
|
test_files: []
|
264
310
|
|
311
|
+
has_rdoc:
|