Ifd_Mobile 0.1.4 → 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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Ifd_Mobile/lib_web.rb +118 -106
  3. data/lib/Ifd_Mobile/methods/IFD_Assertion.rb +44 -44
  4. data/lib/Ifd_Mobile/methods/core.rb +243 -231
  5. data/lib/Ifd_Mobile/methods/lib_var.rb +53 -53
  6. data/lib/Ifd_Mobile/version.rb +5 -5
  7. data/project/Gemfile +9 -9
  8. data/project/apps/TestApp/Test App 2/GestureTestViewController.h +18 -18
  9. data/project/apps/TestApp/Test App 2/GestureTestViewController.m +48 -48
  10. data/project/apps/TestApp/Test App 2/GestureTestViewController.xib +46 -46
  11. data/project/apps/TestApp/Test App 2/MyViewControllerViewController.h +42 -42
  12. data/project/apps/TestApp/Test App 2/MyViewControllerViewController.m +193 -193
  13. data/project/apps/TestApp/Test App 2/TA2AppDelegate.h +28 -28
  14. data/project/apps/TestApp/Test App 2/TA2AppDelegate.m +85 -85
  15. data/project/apps/TestApp/Test App 2/TestApp-Info.plist +40 -40
  16. data/project/apps/TestApp/Test App 2/TestApp-Prefix.pch +29 -29
  17. data/project/apps/TestApp/Test App 2/en.lproj/InfoPlist.strings +21 -21
  18. data/project/apps/TestApp/Test App 2/en.lproj/MyViewControllerViewController.xib +175 -175
  19. data/project/apps/TestApp/Test App 2/main.m +31 -31
  20. data/project/apps/TestApp/TestApp.xcodeproj/project.pbxproj +336 -336
  21. data/project/apps/TestApp/TestApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -7
  22. data/project/apps/TestApp/TestApp.xcodeproj/xcuserdata/anhpham.xcuserdatad/xcschemes/TestApp.xcscheme +88 -88
  23. data/project/apps/TestApp/TestApp.xcodeproj/xcuserdata/anhpham.xcuserdatad/xcschemes/xcschememanagement.plist +22 -22
  24. data/project/features/android/Android_test1.feature +14 -14
  25. data/project/features/android/Android_test2.feature +14 -14
  26. data/project/features/iOS/iOS_test.feature +15 -17
  27. data/project/features/step_definitions/lib_steps/PolyClaim_homepage.rb +2 -2
  28. data/project/features/step_definitions/lib_steps/PolyClaim_loginpage.rb +3 -3
  29. data/project/features/step_definitions/repositories/android_ob_test.rb +9 -9
  30. data/project/features/step_definitions/repositories/ios_ob_test.rb +6 -6
  31. data/project/features/support/env.rb +36 -36
  32. data/project/features/support/hooks.rb +8 -8
  33. data/project/features/support/project_env.rb +42 -42
  34. metadata +40 -40
@@ -1,54 +1,54 @@
1
- def var_collect string_var
2
- if string_var =~ /^.*{year}.*$/
3
- string_var = replace_year(string_var)
4
- end
5
-
6
- if string_var =~ /^.*{month}.*$/
7
- string_var = replace_month(string_var)
8
- end
9
-
10
- if string_var =~ /^.*{day}.*$/
11
- string_var = replace_day(string_var)
12
- end
13
-
14
- if string_var =~ /^.*{store_value}.*$/
15
- string_var = $context_value
16
- end
17
-
18
- return string_var
19
- end
20
-
21
- def replace_year str
22
- t = Time.now()
23
- return str.gsub("{year}", t.year.to_s)
24
- end
25
-
26
- def replace_month str
27
- t = Time.now()
28
- _month = t.month
29
- if _month < 10
30
- return str.gsub("{month}", "0#{_month.to_s}")
31
- else
32
- return str.gsub("{month}", "#{_month.to_s}")
33
- end
34
- return str
35
- end
36
-
37
- def replace_day str
38
- t = Time.now()
39
- _day = t.day
40
- if _day < 10
41
- return str.gsub("{day}", "0#{_day.to_s}")
42
- else
43
- return str.gsub("{day}", "#{_day.to_s}")
44
- end
45
- return str
46
- end
47
-
48
- def replace_pipe str_pipe
49
- put_log ">>>> #{str_pipe}"
50
- if str_pipe =~ /^.*{pipe}.*$/
51
- return str_pipe.gsub("{pipe}", "|")
52
- end
53
- return str_pipe
1
+ def var_collect string_var
2
+ if string_var =~ /^.*{year}.*$/
3
+ string_var = replace_year(string_var)
4
+ end
5
+
6
+ if string_var =~ /^.*{month}.*$/
7
+ string_var = replace_month(string_var)
8
+ end
9
+
10
+ if string_var =~ /^.*{day}.*$/
11
+ string_var = replace_day(string_var)
12
+ end
13
+
14
+ if string_var =~ /^.*{store_value}.*$/
15
+ string_var = $context_value
16
+ end
17
+
18
+ return string_var
19
+ end
20
+
21
+ def replace_year str
22
+ t = Time.now()
23
+ return str.gsub("{year}", t.year.to_s)
24
+ end
25
+
26
+ def replace_month str
27
+ t = Time.now()
28
+ _month = t.month
29
+ if _month < 10
30
+ return str.gsub("{month}", "0#{_month.to_s}")
31
+ else
32
+ return str.gsub("{month}", "#{_month.to_s}")
33
+ end
34
+ return str
35
+ end
36
+
37
+ def replace_day str
38
+ t = Time.now()
39
+ _day = t.day
40
+ if _day < 10
41
+ return str.gsub("{day}", "0#{_day.to_s}")
42
+ else
43
+ return str.gsub("{day}", "#{_day.to_s}")
44
+ end
45
+ return str
46
+ end
47
+
48
+ def replace_pipe str_pipe
49
+ put_log ">>>> #{str_pipe}"
50
+ if str_pipe =~ /^.*{pipe}.*$/
51
+ return str_pipe.gsub("{pipe}", "|")
52
+ end
53
+ return str_pipe
54
54
  end
@@ -1,5 +1,5 @@
1
- module Ifd
2
- module Mobile
3
- VERSION = '0.1.4'
4
- end
5
- end
1
+ module Ifd
2
+ module Mobile
3
+ VERSION = '0.1.5'
4
+ end
5
+ end
data/project/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
- source "https://www.rubygems.org"
2
-
3
- gem "rest-client"
4
- gem "rspec"
5
- gem "selenium-webdriver"
6
- gem "cucumber"
7
- gem "rspec-expectations"
8
- gem "appium_lib"
9
- gem "rack-utf8_sanitizer"
1
+ source "https://www.rubygems.org"
2
+
3
+ gem "rest-client"
4
+ gem "rspec"
5
+ gem "selenium-webdriver"
6
+ gem "cucumber"
7
+ gem "rspec-expectations"
8
+ gem "appium_lib"
9
+ gem "rack-utf8_sanitizer"
10
10
  gem "Ifd_Mobile"
@@ -1,18 +1,18 @@
1
- //
2
- // GestureTestViewController.h
3
- // TestApp
4
- //
5
- // Created by ThinkSys- Amit on 12/07/13.
6
- //
7
- //
8
-
9
- #import <UIKit/UIKit.h>
10
- #import <MapKit/MapKit.h>
11
-
12
- @interface GestureTestViewController : UIViewController<UIGestureRecognizerDelegate>
13
- @property (retain, nonatomic) IBOutlet MKMapView *mapView;
14
-
15
-
16
- - (IBAction)handleRotation:(UIRotationGestureRecognizer*)sender;
17
-
18
- @end
1
+ //
2
+ // GestureTestViewController.h
3
+ // TestApp
4
+ //
5
+ // Created by ThinkSys- Amit on 12/07/13.
6
+ //
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+ #import <MapKit/MapKit.h>
11
+
12
+ @interface GestureTestViewController : UIViewController<UIGestureRecognizerDelegate>
13
+ @property (retain, nonatomic) IBOutlet MKMapView *mapView;
14
+
15
+
16
+ - (IBAction)handleRotation:(UIRotationGestureRecognizer*)sender;
17
+
18
+ @end
@@ -1,48 +1,48 @@
1
- //
2
- // GestureTestViewController.m
3
- // TestApp
4
- //
5
- // Created by ThinkSys- Amit on 12/07/13.
6
- //
7
- //
8
-
9
- #import "GestureTestViewController.h"
10
-
11
- @interface GestureTestViewController ()
12
-
13
- @end
14
-
15
- @implementation GestureTestViewController
16
-
17
- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18
- {
19
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20
- if (self) {
21
- // Custom initialization
22
- }
23
- return self;
24
- }
25
-
26
- - (void)viewDidLoad
27
- {
28
- [super viewDidLoad];
29
- // Do any additional setup after loading the view from its nib.
30
- }
31
-
32
- - (void)didReceiveMemoryWarning
33
- {
34
- [super didReceiveMemoryWarning];
35
- // Dispose of any resources that can be recreated.
36
- }
37
-
38
- - (IBAction)handleRotation:(UIRotationGestureRecognizer*)sender
39
- {
40
- NSLog(@"Rotation Starts");
41
- sender.view.transform = CGAffineTransformRotate(sender.view.transform, sender.rotation);
42
- sender.rotation = 0;
43
- }
44
- - (void)dealloc {
45
- [_mapView release];
46
- [super dealloc];
47
- }
48
- @end
1
+ //
2
+ // GestureTestViewController.m
3
+ // TestApp
4
+ //
5
+ // Created by ThinkSys- Amit on 12/07/13.
6
+ //
7
+ //
8
+
9
+ #import "GestureTestViewController.h"
10
+
11
+ @interface GestureTestViewController ()
12
+
13
+ @end
14
+
15
+ @implementation GestureTestViewController
16
+
17
+ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18
+ {
19
+ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20
+ if (self) {
21
+ // Custom initialization
22
+ }
23
+ return self;
24
+ }
25
+
26
+ - (void)viewDidLoad
27
+ {
28
+ [super viewDidLoad];
29
+ // Do any additional setup after loading the view from its nib.
30
+ }
31
+
32
+ - (void)didReceiveMemoryWarning
33
+ {
34
+ [super didReceiveMemoryWarning];
35
+ // Dispose of any resources that can be recreated.
36
+ }
37
+
38
+ - (IBAction)handleRotation:(UIRotationGestureRecognizer*)sender
39
+ {
40
+ NSLog(@"Rotation Starts");
41
+ sender.view.transform = CGAffineTransformRotate(sender.view.transform, sender.rotation);
42
+ sender.rotation = 0;
43
+ }
44
+ - (void)dealloc {
45
+ [_mapView release];
46
+ [super dealloc];
47
+ }
48
+ @end
@@ -1,47 +1,47 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
3
- <dependencies>
4
- <deployment defaultVersion="1552" identifier="iOS"/>
5
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
6
- </dependencies>
7
- <objects>
8
- <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="GestureTestViewController">
9
- <connections>
10
- <outlet property="mapView" destination="4" id="24"/>
11
- <outlet property="view" destination="1" id="3"/>
12
- </connections>
13
- </placeholder>
14
- <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
15
- <view contentMode="scaleToFill" id="1">
16
- <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
17
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
- <subviews>
19
- <mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" mapType="standard" showsUserLocation="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4">
20
- <rect key="frame" x="35" y="83" width="250" height="250"/>
21
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
22
- <gestureRecognizers/>
23
- <constraints>
24
- <constraint firstAttribute="width" constant="250" id="18"/>
25
- <constraint firstAttribute="height" constant="250" id="20"/>
26
- </constraints>
27
- <connections>
28
- <outletCollection property="gestureRecognizers" destination="14" appends="YES" id="15"/>
29
- </connections>
30
- </mapView>
31
- </subviews>
32
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
33
- <constraints>
34
- <constraint firstItem="4" firstAttribute="top" secondItem="1" secondAttribute="top" constant="83" id="22"/>
35
- <constraint firstItem="4" firstAttribute="centerX" secondItem="1" secondAttribute="centerX" id="23"/>
36
- </constraints>
37
- <simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
38
- <simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
39
- </view>
40
- <rotationGestureRecognizer id="14">
41
- <connections>
42
- <action selector="handleRotation:" destination="-1" id="16"/>
43
- <outlet property="delegate" destination="-1" id="25"/>
44
- </connections>
45
- </rotationGestureRecognizer>
46
- </objects>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
3
+ <dependencies>
4
+ <deployment defaultVersion="1552" identifier="iOS"/>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
6
+ </dependencies>
7
+ <objects>
8
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="GestureTestViewController">
9
+ <connections>
10
+ <outlet property="mapView" destination="4" id="24"/>
11
+ <outlet property="view" destination="1" id="3"/>
12
+ </connections>
13
+ </placeholder>
14
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
15
+ <view contentMode="scaleToFill" id="1">
16
+ <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" mapType="standard" showsUserLocation="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4">
20
+ <rect key="frame" x="35" y="83" width="250" height="250"/>
21
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
22
+ <gestureRecognizers/>
23
+ <constraints>
24
+ <constraint firstAttribute="width" constant="250" id="18"/>
25
+ <constraint firstAttribute="height" constant="250" id="20"/>
26
+ </constraints>
27
+ <connections>
28
+ <outletCollection property="gestureRecognizers" destination="14" appends="YES" id="15"/>
29
+ </connections>
30
+ </mapView>
31
+ </subviews>
32
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
33
+ <constraints>
34
+ <constraint firstItem="4" firstAttribute="top" secondItem="1" secondAttribute="top" constant="83" id="22"/>
35
+ <constraint firstItem="4" firstAttribute="centerX" secondItem="1" secondAttribute="centerX" id="23"/>
36
+ </constraints>
37
+ <simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
38
+ <simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
39
+ </view>
40
+ <rotationGestureRecognizer id="14">
41
+ <connections>
42
+ <action selector="handleRotation:" destination="-1" id="16"/>
43
+ <outlet property="delegate" destination="-1" id="25"/>
44
+ </connections>
45
+ </rotationGestureRecognizer>
46
+ </objects>
47
47
  </document>
@@ -1,42 +1,42 @@
1
- /**
2
- * Copyright 2012 Appium Committers
3
- *
4
- * Licensed to the Apache Software Foundation (ASF) under one
5
- * or more contributor license agreements. See the NOTICE file
6
- * distributed with this work for additional information
7
- * regarding copyright ownership. The ASF licenses this file
8
- * to you under the Apache License, Version 2.0 (the
9
- * "License"); you may not use this file except in compliance
10
- * with the License. You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing,
15
- * software distributed under the License is distributed on an
16
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
- * KIND, either express or implied. See the License for the
18
- * specific language governing permissions and limitations
19
- * under the License.
20
- */
21
-
22
- #import <UIKit/UIKit.h>
23
- #import <CoreLocation/CoreLocation.h>
24
- #import "GestureTestViewController.h"
25
-
26
- @interface MyViewControllerViewController : UIViewController <UITextFieldDelegate,CLLocationManagerDelegate>
27
- @property (retain, nonatomic) IBOutlet UITextField *firstArg;
28
- @property (retain, nonatomic) IBOutlet UITextField *secondArg;
29
- @property (retain, nonatomic) IBOutlet UILabel *answerLabel;
30
- @property (retain, nonatomic) IBOutlet UISwitch *locationStatus;
31
- @property (retain, nonatomic) IBOutlet UIButton *computeSumButton;
32
- @property (nonatomic, retain) CLLocationManager *locationMgr;
33
-
34
- - (IBAction)testGesture:(id)sender;
35
- - (IBAction)computeAction:(id)sender;
36
- - (IBAction)showAlert:(id)sender;
37
- - (IBAction)crashApp:(id)sender;
38
- - (BOOL)textFieldShouldReturn:(UITextField *)textField;
39
- - (void)logLocationAuthFromTimer:(NSTimer *)timer;
40
- - (void)logLocationAuth;
41
-
42
- @end
1
+ /**
2
+ * Copyright 2012 Appium Committers
3
+ *
4
+ * Licensed to the Apache Software Foundation (ASF) under one
5
+ * or more contributor license agreements. See the NOTICE file
6
+ * distributed with this work for additional information
7
+ * regarding copyright ownership. The ASF licenses this file
8
+ * to you under the Apache License, Version 2.0 (the
9
+ * "License"); you may not use this file except in compliance
10
+ * with the License. You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+
22
+ #import <UIKit/UIKit.h>
23
+ #import <CoreLocation/CoreLocation.h>
24
+ #import "GestureTestViewController.h"
25
+
26
+ @interface MyViewControllerViewController : UIViewController <UITextFieldDelegate,CLLocationManagerDelegate>
27
+ @property (retain, nonatomic) IBOutlet UITextField *firstArg;
28
+ @property (retain, nonatomic) IBOutlet UITextField *secondArg;
29
+ @property (retain, nonatomic) IBOutlet UILabel *answerLabel;
30
+ @property (retain, nonatomic) IBOutlet UISwitch *locationStatus;
31
+ @property (retain, nonatomic) IBOutlet UIButton *computeSumButton;
32
+ @property (nonatomic, retain) CLLocationManager *locationMgr;
33
+
34
+ - (IBAction)testGesture:(id)sender;
35
+ - (IBAction)computeAction:(id)sender;
36
+ - (IBAction)showAlert:(id)sender;
37
+ - (IBAction)crashApp:(id)sender;
38
+ - (BOOL)textFieldShouldReturn:(UITextField *)textField;
39
+ - (void)logLocationAuthFromTimer:(NSTimer *)timer;
40
+ - (void)logLocationAuth;
41
+
42
+ @end