Permalink
Browse files

Initial commit of ios-auto

  • Loading branch information...
penguinho committed Aug 2, 2012
0 parents commit 3ab56d3a5601897b2790b5256351f9b5af3f9e90
Showing with 3,891 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +13 −0 LICENSE.txt
  3. +18 −0 TestApp/Test App 2/MyViewControllerViewController.h
  4. +67 −0 TestApp/Test App 2/MyViewControllerViewController.m
  5. +355 −0 TestApp/Test App 2/MyViewControllerViewController.xib
  6. +15 −0 TestApp/Test App 2/TA2AppDelegate.h
  7. +72 −0 TestApp/Test App 2/TA2AppDelegate.m
  8. +38 −0 TestApp/Test App 2/TestApp-Info.plist
  9. +14 −0 TestApp/Test App 2/TestApp-Prefix.pch
  10. +2 −0 TestApp/Test App 2/en.lproj/InfoPlist.strings
  11. +18 −0 TestApp/Test App 2/main.m
  12. +274 −0 TestApp/TestApp.xcodeproj/project.pbxproj
  13. +57 −0 main/Automation.sln
  14. +26 −0 main/Automation.userprefs
  15. +24 −0 main/TestProgram/Program.cs
  16. +36 −0 main/TestProgram/Properties/AssemblyInfo.cs
  17. +53 −0 main/TestProgram/SampleTest.cs
  18. +74 −0 main/TestProgram/TestProgram.csproj
  19. +3 −0 main/TestProgram/app.config
  20. BIN main/Testing/Automation.tracetemplate
  21. +21 −0 main/Testing/Logging/Listeners/BaseLogListener.cs
  22. +91 −0 main/Testing/Logging/Listeners/ConsoleLogListener.cs
  23. +199 −0 main/Testing/Logging/Listeners/FileSystemLogListener.cs
  24. +58 −0 main/Testing/Logging/Listeners/StatisticsLogListener.cs
  25. +242 −0 main/Testing/Logging/LogEngine.cs
  26. +54 −0 main/Testing/Logging/LogEntry.cs
  27. +27 −0 main/Testing/Logging/LogEntryType.cs
  28. +38 −0 main/Testing/Properties/AssemblyInfo.cs
  29. +128 −0 main/Testing/Properties/Resources.Designer.cs
  30. +130 −0 main/Testing/Properties/Resources.resx
  31. +15 −0 main/Testing/Resources/BeatSecurityAgent.txt
  32. +86 −0 main/Testing/Resources/bootstrap.txt
  33. +9 −0 main/Testing/Resources/writeResponse.txt
  34. +39 −0 main/Testing/Test.cs
  35. +198 −0 main/Testing/TestExecutor.cs
  36. +91 −0 main/Testing/TestInfo.cs
  37. +122 −0 main/Testing/Testing.csproj
  38. +513 −0 main/Testing/iOS/iOSClient.cs
  39. +5 −0 main/Testing/iOS/iOSDevice.cs
  40. +31 −0 main/Testing/iOS/iOSHook.cs
  41. +54 −0 main/Testing/iOS/iOSLogListener.cs
  42. +36 −0 main/Testing/iOS/iOSTest.cs
  43. +46 −0 main/Utility/CommandResult.cs
  44. +35 −0 main/Utility/Misc.cs
  45. +38 −0 main/Utility/Properties/AssemblyInfo.cs
  46. +63 −0 main/Utility/Properties/Resources.Designer.cs
  47. +120 −0 main/Utility/Properties/Resources.resx
  48. +19 −0 main/Utility/Random/Random.cs
  49. +147 −0 main/Utility/SystemOperations.cs
  50. +73 −0 main/Utility/Utility.csproj
@@ -0,0 +1,4 @@
main/Utility/Properties/Resources.resources
main/Testing/Properties/.DS_Store
@@ -0,0 +1,13 @@
Copyright [2012] [Dan Cuellar]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,18 @@
//
// MyViewControllerViewController.h
// Test App 2
//
// Created by Joseph Cuellar on 8/1/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MyViewControllerViewController : UIViewController
@property (retain, nonatomic) IBOutlet UITextField *firstArg;
@property (retain, nonatomic) IBOutlet UITextField *secondArg;
@property (retain, nonatomic) IBOutlet UILabel *answerLabel;
- (IBAction)computeAction:(id)sender;
@end
@@ -0,0 +1,67 @@
//
// MyViewControllerViewController.m
// Test App 2
//
// Created by Joseph Cuellar on 8/1/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "MyViewControllerViewController.h"
@interface MyViewControllerViewController ()
@end
@implementation MyViewControllerViewController
@synthesize answerLabel;
@synthesize firstArg;
@synthesize secondArg;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
[firstArg setAccessibilityLabel:@"IntegerA"];
[secondArg setAccessibilityLabel:@"IntegerB"];
[answerLabel setAccessibilityLabel:@"Compute Sum"];
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
- (void)viewDidUnload
{
[self setFirstArg:nil];
[self setSecondArg:nil];
[self setAnswerLabel:nil];
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (void)dealloc {
[firstArg release];
[secondArg release];
[answerLabel release];
[super dealloc];
}
- (IBAction)computeAction:(id)sender {
int a = [[firstArg text] intValue];
int b = [[secondArg text] intValue];
int sum = a + b;
NSString *newLabelValue = [NSString stringWithFormat:@"%d",sum];
[answerLabel setText:newLabelValue];
}
@end
Oops, something went wrong.

0 comments on commit 3ab56d3

Please sign in to comment.