Ifd_Automation 1.6.0 → 1.7.0

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.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/bin/Ifd_Automation +34 -15
  3. data/bin/console +14 -0
  4. data/bin/documentation_generator.rb +119 -0
  5. data/bin/helper.rb +24 -19
  6. data/bin/setup +8 -0
  7. data/lib/Ifd_Automation.rb +2 -1
  8. data/lib/Ifd_Automation/all_steps.rb +8 -0
  9. data/lib/Ifd_Automation/database_steps.rb +106 -0
  10. data/lib/Ifd_Automation/email_steps.rb +67 -82
  11. data/lib/Ifd_Automation/file_steps.rb +30 -0
  12. data/lib/Ifd_Automation/{javascript_handling_steps.rb → javascript_steps.rb} +1 -2
  13. data/lib/Ifd_Automation/required_libs.rb +7 -0
  14. data/lib/Ifd_Automation/response.rb +105 -0
  15. data/lib/Ifd_Automation/ssh_steps.rb +47 -0
  16. data/lib/Ifd_Automation/version.rb +3 -5
  17. data/lib/Ifd_Automation/web_steps.rb +293 -0
  18. data/lib/Ifd_Automation/webservice_steps.rb +261 -0
  19. data/lib/{Ifd_Automation/methods/IFD_Assertion_methods.rb → Ifd_Automation_support/assertion_helpers.rb} +0 -1
  20. data/lib/Ifd_Automation_support/connection_helpers.rb +14 -0
  21. data/lib/{Ifd_Automation/methods → Ifd_Automation_support}/core.rb +103 -34
  22. data/lib/{Ifd_Automation/methods/javascript_handling_methods.rb → Ifd_Automation_support/javascript_helpers.rb} +0 -1
  23. data/lib/Ifd_Automation_support/mail_helpers.rb +17 -0
  24. data/lib/Ifd_Automation_support/selenium_sync_issues.rb +62 -0
  25. data/lib/{Ifd_Automation/methods/web_methods.rb → Ifd_Automation_support/web_steps_helpers.rb} +6 -1
  26. data/project/Gemfile +1 -19
  27. data/project/Gemfile.lock +203 -0
  28. data/project/features/TestData/globalData.yml +3 -11
  29. data/project/features/TestData/sshtest.txt +2 -0
  30. data/project/features/TestData/testfile.sql +2 -0
  31. data/project/features/{TestData/DownloadFolder/test.txt → TestSuite/test} +0 -0
  32. data/project/features/step_definitions/lib_steps/test.rb +16 -0
  33. data/project/features/step_definitions/repositories/project_object.yml +6 -6
  34. data/project/features/support/env.rb +46 -68
  35. data/project/features/support/project_config.yml +6 -37
  36. metadata +231 -51
  37. data/lib/Ifd_Automation/assertion_steps.rb +0 -96
  38. data/lib/Ifd_Automation/lib_file_steps.rb +0 -54
  39. data/lib/Ifd_Automation/lib_schema_data_steps.rb +0 -115
  40. data/lib/Ifd_Automation/lib_web_steps.rb +0 -184
  41. data/lib/Ifd_Automation/lib_webservice_steps.rb +0 -44
  42. data/lib/Ifd_Automation/methods/IFD_Connection.rb +0 -28
  43. data/lib/Ifd_Automation/methods/IFD_email_methods.rb +0 -16
  44. data/lib/Ifd_Automation/methods/IFD_webservice.rb +0 -17
  45. data/lib/Ifd_Automation/methods/database_methods.rb +0 -25
  46. data/lib/Ifd_Automation/methods/db_utils.rb +0 -37
  47. data/lib/Ifd_Automation/methods/error_handling_methods.rb +0 -87
  48. data/lib/Ifd_Automation/methods/lib_var.rb +0 -59
  49. data/lib/Ifd_Automation/methods/misc_methods.rb +0 -33
  50. data/lib/Ifd_Automation/methods/required_files.rb +0 -33
  51. data/lib/Ifd_Automation/methods/util.rb +0 -168
  52. data/lib/Ifd_Automation/methods/web_service_methods.rb +0 -63
  53. data/project/config/cucumber.yml +0 -3
  54. data/project/features/TestData/ExpectedDataFile/test.txt +0 -0
  55. data/project/features/TestData/SqlScript/test.sql +0 -0
  56. data/project/features/TestData/actual_images/infodation.jpg +0 -0
  57. data/project/features/TestData/expected_images/infodation.jpg +0 -0
  58. data/project/features/TestData/image_difference/infodation.jpg +0 -0
  59. data/project/features/TestData/screenshots/infodation.jpg +0 -0
  60. data/project/features/TestSuite/Login/login.feature +0 -11
  61. data/project/features/step_definitions/lib_steps/login_steps.rb +0 -16
@@ -1,63 +0,0 @@
1
- # require 'rest-client'
2
- class WebServiceMethods
3
-
4
- def self.get_response_code(url, timeout)
5
- response = HTTParty.get url, {timeout => timeout}
6
- return response.code
7
- end
8
-
9
- def self.url_reach? (url, timeout)
10
- response_code = get_response_code(url, timeout)
11
- if response_code/10 ==2
12
- return true
13
- else
14
- return false
15
- end
16
- end
17
-
18
- def self.send_put_request(url, data)
19
- begin
20
- response = HTTParty.put url, {:body => data, :timeout => 180000}
21
- return response
22
- rescue => e
23
- raise "*** ERROR: when sending put request to '#{url}'. Info: \n\n #{e.message}"
24
- end
25
- end
26
-
27
- def self.send_post_request(url, data)
28
- begin
29
- puts "*** #{'WebServiceMethods.send_post_request.url'.ljust(47,' ')}: #{url}"
30
- puts "WebServiceMethods.send_post_request.data: #{data}"
31
- response = HTTParty.post url, {:body => data, :timeout => 180000}
32
- return response
33
- rescue => e
34
- raise "*** ERROR: when sending put request to '#{url}'. Info: \n\n #{e.message}"
35
- end
36
- end
37
-
38
- def self.send_XML_post_request(url, data)
39
- begin
40
- # puts "*** #{'WebServiceMethods.send_post_request.url'.ljust(47,' ')}: #{url}"
41
- # puts "WebServiceMethods.send_post_request.data: #{data}"
42
- response = RestClient.post url, data, :content_type => "text/xml", :timeout => 180000
43
- return response
44
- rescue => e
45
- raise "*** ERROR: when sending put request to '#{url}'. Info: \n\n #{e.message}"
46
- end
47
- end
48
-
49
- def self.send_get_request(url)
50
- begin
51
- response = HTTParty.get url, timeout: 180000
52
- return response
53
- rescue => e
54
- raise "*** ERROR: when sending get request to '#{url}'. Info: \n\n #{e.message}"
55
- end
56
- end
57
-
58
- def self.verify_response(reponse)
59
- if response.code/100 != 2
60
- raise "*** ERROR: when processing the request. More info: \n\n #{response.body.to_s}"
61
- end
62
- end
63
- end
@@ -1,3 +0,0 @@
1
- cucumber: --format html --out reports/features_report<%= ENV['TEST_ENV_NUMBER'] %>.html --profile rerun --format json --out json-report.json
2
- rerun: -f rerun --out cucumber_failures.log
3
- pretty: -f pretty
File without changes
File without changes
@@ -1,11 +0,0 @@
1
- #Feature: Create a new user
2
- # In order to create new user account
3
- # As a admin role
4
- # I want to create new user account
5
- # So that new user can be created successfully
6
- # Scenario: Create a new user
7
- # Given I am logged in to admin page
8
- # When I create a new user named AnhPham
9
- # Then I should see that a user named AnhPham exists
10
- #
11
- #
@@ -1,16 +0,0 @@
1
- # Given "I am logged in to admin page" do
2
- # step %{I am on Admin Login Page}
3
- # step %{I set text on "textbox_username" with "adminuser"}
4
- # step %{I set text on "textbox_password" with "password@123"}
5
- # step %{I click on "button_login"}
6
- # step %{I wait for 3 seconds}
7
- # end
8
- #
9
- # When "I create a new user named $name" do |name|
10
- # step %{I set text on "textbox_newUserName" with "#{name}"}
11
- # step %{I click on "button_createNewUser"}
12
- # end
13
- #
14
- # Then "I should see that a user named $name exists" do |name|
15
- # step %{I check property "label_message" has value "#{name}"}
16
- # end