leap_salesforce 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/ChangeLog +4 -0
- data/README.md +26 -0
- data/lib/leap_salesforce/soql_data/soql_global_object_data.rb +3 -3
- data/lib/leap_salesforce/version.rb +1 -1
- metadata +1 -2
- data/.idea/.rakeTasks +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04efde59b716f0dffffb2e0d9f1accf68b74a63f65bb4f3da1cbc2c053218e51
|
4
|
+
data.tar.gz: c4e79f40d3016c9e410a6f93b2d8e66133db77f9dcfd7d81c7735e44e32cc7d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1e1e8dda712abac38a314d50472569bd4e9a4ea4b0c0d9e89e99d3e7bbea0c3b10c347363e61c7ea58842f15a40c6b30839651e0ae95210305bc74b70ee17d
|
7
|
+
data.tar.gz: 066f2566a5a3abfb333ed60015e5d6f58cd692c44be3343c812b912adbd320b9836cc33752d531110224b153bdaadead09fade63eba64cb029fd5399febdf9f0
|
data/.gitignore
CHANGED
data/ChangeLog
CHANGED
data/README.md
CHANGED
@@ -7,6 +7,32 @@ In the future it will also planned to be used to create page objects based on me
|
|
7
7
|
|
8
8
|
[](https://gitlab.com/leap-dojo/leap_salesforce/pipelines)
|
9
9
|
|
10
|
+
## Is this for you?
|
11
|
+
|
12
|
+
This `gem` is an open source library aimed at making integrated test automation
|
13
|
+
for Salesforce easy. Using it does require you to use code so if you really must
|
14
|
+
have a `codeless` automation suite then you will need another tool
|
15
|
+
(e.g., [Provar](provartesting.com)). However if you have some engineers (dev
|
16
|
+
or test) who are keen to get their hands into some code this is worth trying.
|
17
|
+
|
18
|
+
The benefits of an open source tool like this are:
|
19
|
+
|
20
|
+
* Ease of use. Initialisation scripts make getting setup easy, code
|
21
|
+
examples demonstrate how to perform common actions
|
22
|
+
* Transparency. Nothing is hidden. Every piece of code can be seen by you
|
23
|
+
* Flexibility. Using Ruby you are able to customize and extend the code however
|
24
|
+
you like and if you want to share it, you can easily do so with a pull request
|
25
|
+
* Mutual growth. The hope is with many using this library, test automation
|
26
|
+
engineers can support each other and mutually create a library that makes
|
27
|
+
common test cases easy
|
28
|
+
* It itself is unit tested. You can have confidence of all the features shown
|
29
|
+
and can add extra unit tests if you need more confidence
|
30
|
+
* Built with and for CI in Gitlab. Designed to work within Docker containers
|
31
|
+
* Will integrate with `sfdx` leveraging all of it's benefits
|
32
|
+
* Supported by [IntegrationQA](www.integrationqa.com) who can provide
|
33
|
+
[support and training](https://gitlab.com/leap-dojo/leap_salesforce/wikis/SupportModel)
|
34
|
+
to help you get started and overcome challenges
|
35
|
+
|
10
36
|
## Table of Contents
|
11
37
|
|
12
38
|
* [LeapSalesforce](#leapsalesforce)
|
@@ -247,10 +247,11 @@ module SoqlGlobalObjectData
|
|
247
247
|
# Returns SOQL condition for value passed to be used in SOQL query
|
248
248
|
# @example Greater than or equal to yesterday's date
|
249
249
|
# condition_for("<=#{Time.mktime(2019,1,1)}") # => '<= 2019-01-01T00:00:00.000Z'
|
250
|
-
# @param [String] value Value to search for. Certain characters modify this to be more of a complex
|
251
|
-
# check
|
250
|
+
# @param [String, Object] value Value to search for. Certain characters modify this to be more of a complex
|
251
|
+
# check. Object will be converted String if not already one
|
252
252
|
# @return [String] Condition criteria to match value using SOQL
|
253
253
|
def condition_for(value)
|
254
|
+
value = value.to_s
|
254
255
|
operator, value = case value[0]
|
255
256
|
when '>', '<' then extract_comparator(value)
|
256
257
|
when '~' then ['LIKE', value[1..-1]]
|
@@ -259,7 +260,6 @@ module SoqlGlobalObjectData
|
|
259
260
|
|
260
261
|
return "= #{value.to_zulu_date_string}"
|
261
262
|
end
|
262
|
-
|
263
263
|
return "#{operator} #{value.to_zulu_date_string}" if value.type_of_time?
|
264
264
|
|
265
265
|
"#{operator} '#{value}'"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leap_salesforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IQA
|
@@ -248,7 +248,6 @@ extra_rdoc_files: []
|
|
248
248
|
files:
|
249
249
|
- ".gitignore"
|
250
250
|
- ".gitlab-ci.yml"
|
251
|
-
- ".idea/.rakeTasks"
|
252
251
|
- ".idea/dictionaries/iqa.xml"
|
253
252
|
- ".idea/leap-salesforce.iml"
|
254
253
|
- ".idea/markdown-exported-files.xml"
|
data/.idea/.rakeTasks
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
-
You are allowed to:
|
4
|
-
1. Remove rake task
|
5
|
-
2. Add existing rake tasks
|
6
|
-
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build leap_salesforce-0.2.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Check Salesforce OAuth2 authentication is working" fullCmd="check_oauth" taksId="check_oauth" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install leap_salesforce-0.2.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install leap_salesforce-0.2.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="leaps"><RakeTask description="Create objects, fields, enums" fullCmd="leaps:create_all" taksId="create_all" /><RakeTask description="Create Enumeration objects for picklists from Salesforce Metadata" fullCmd="leaps:create_enums" taksId="create_enums" /><RakeTask description="Create Soql Data objects" fullCmd="leaps:create_soql_objects" taksId="create_soql_objects" /></RakeGroup><RakeTask description="Create tag v0.2.0 and build and push leap_salesforce-0.2.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="Create stubs for dynamic methods so they're picked up by the IDE" fullCmd="stub" taksId="stub" /><RakeGroup description="" fullCmd="" taksId="yard"><RakeTask description="Run YARD doctests" fullCmd="yard:doctest" taksId="doctest" /></RakeGroup><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|