Ifd_Automation 1.9.2 → 2.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/bin/documentation_generator.rb +1 -1
  3. data/lib/Ifd_Automation/REST_steps.rb +105 -0
  4. data/lib/Ifd_Automation/SOAP_steps.rb +54 -0
  5. data/lib/Ifd_Automation/database_steps.rb +17 -47
  6. data/lib/Ifd_Automation/dynamic_store_vavue_steps.rb +25 -0
  7. data/lib/Ifd_Automation/email_steps.rb +32 -36
  8. data/lib/Ifd_Automation/file_steps.rb +7 -58
  9. data/lib/Ifd_Automation/require_libs.rb +6 -0
  10. data/lib/Ifd_Automation/ssh_steps.rb +14 -23
  11. data/lib/Ifd_Automation/version.rb +1 -1
  12. data/lib/Ifd_Automation/web_steps.rb +58 -293
  13. data/lib/helper/assertion_helpers.rb +100 -0
  14. data/lib/helper/auto_utils.rb +67 -0
  15. data/lib/{Ifd_Automation_support → helper}/connection_helpers.rb +2 -2
  16. data/lib/{Ifd_Automation_support → helper}/core.rb +154 -60
  17. data/lib/{Ifd_Automation_support → helper}/mail_helpers.rb +2 -2
  18. data/lib/helper/web_steps_helpers.rb +123 -0
  19. data/project/Gemfile +1 -2
  20. data/project/features/Screenshot/failed_sample.png +0 -0
  21. data/project/features/TestData/globalData.yml +4 -1
  22. data/project/features/TestSuite/test.feature +1 -4
  23. data/project/features/step_definitions/lib_steps/test.rb +5 -3
  24. data/project/features/step_definitions/repositories/project_object.yml +2 -2
  25. data/project/features/support/env.rb +53 -52
  26. data/project/features/support/hooks.rb +2 -0
  27. data/project/features/support/project_config.yml +6 -6
  28. metadata +36 -148
  29. data/lib/Ifd_Automation/javascript_steps.rb +0 -33
  30. data/lib/Ifd_Automation/required_libs.rb +0 -7
  31. data/lib/Ifd_Automation/response.rb +0 -105
  32. data/lib/Ifd_Automation/webservice_steps.rb +0 -281
  33. data/lib/Ifd_Automation_support/assertion_helpers.rb +0 -205
  34. data/lib/Ifd_Automation_support/javascript_helpers.rb +0 -45
  35. data/lib/Ifd_Automation_support/selenium_sync_issues.rb +0 -62
  36. data/lib/Ifd_Automation_support/web_steps_helpers.rb +0 -296
  37. data/project/Gemfile.lock +0 -203
  38. data/project/Rakefile +0 -46
data/project/Rakefile DELETED
@@ -1,46 +0,0 @@
1
- require 'cucumber'
2
- require 'cucumber/rake/task'
3
- require 'fileutils'
4
-
5
- task :cleanup do
6
- puts " ==================Deleting old cucumber_report.json file on Reports directory ============================="
7
- # FileUtils.rm_rf('reports')
8
- File.delete("reports/cucumber_report.json") if File.exist?("reports/cucumber_report.json")
9
- # File.new("cucumber_failures.log", "w")
10
- # Dir.mkdir("reports")
11
- end
12
-
13
- task :parallel_remote do
14
- puts "==================Executing Tests in parallel================================"
15
- system "bundle exec parallel_cucumber features/ -o \"-r features -p cucumber SELENIUM=remote\" -n 10"
16
- puts " =======Parallel execution finished and cucumber_failures.log created ========"
17
- end
18
-
19
- task :parallel_local do
20
- puts "==================Executing Tests in parallel================================"
21
- system "bundle exec parallel_cucumber features/ -o \"-r features -p cucumber SELENIUM=local\" -n 10"
22
- puts " =======Parallel execution finished and cucumber_failures.log created ========"
23
- end
24
-
25
- task :rerun_remote do
26
- if File.size("cucumber_failures.log") == 0
27
- puts "===============No failures. Everything Passed=============================="
28
- else
29
- puts "===============Re-running Failed Scenarios================================="
30
- # system "rerun = cat cucumber_failures.log"
31
- system "bundle exec parallel_cucumber cucumber_failures.log features/ -o \"-r features SELENIUM=remote\" -n 10"
32
- end
33
- end
34
-
35
- task :rerun_local do
36
- if File.size("cucumber_failures.log") == 0
37
- puts "===============No failures. Everything Passed=============================="
38
- else
39
- puts "===============Re-running Failed Scenarios================================="
40
- # system "rerun = @cucumber_failures.log"
41
- system "bundle exec parallel_cucumber cucumber_failures.log features/ -o \"-r features SELENIUM=local\" -n 10"
42
- end
43
- end
44
-
45
- task :test_remote => [ :cleanup, :parallel_remote, :rerun_remote ]
46
- task :test_local => [ :cleanup, :parallel_local, :rerun_local ]