Wednesday, October 24, 2012

Performance Testing for Mobile Apps – Is Your App Ready for the Worst?

Here is artical for Mobile Apps testing

http://blog.infostretch.com/performance-testing-for-mobile-apps-a-new-game-indeed




There are some tools in the market that can help you with the performance/load, and stress testing conundrum in the mobile and web based apps space.
  1. Recent announcement by MicroFocus about SilkPerformer 9.0 (2012)  supports Mobile Web & Native apps testing on iOS, Android & BB platforms
  2. HP LoadRunner supports mobile web & native apps testing on iOS, Android, BB & WM platforms
  3. NeoLoad supports mobile web & native mobile apps
  4. JMeter supports mobile web app testing on simulators
  5. IBM Rational Performance Tester (RPT) supports mobile web app testing as well

Sunday, October 14, 2012

iOS -- CoreData data migration

Coredata provides a lightweight auto data migration method for the following conditions:

1. Simply add a new column.
2. Change a column to optional.
3. Change a optional column to compulsory, but have default value.

Step 1:
Create a new data version


1. Editor -> Add Model Version (expand your xcdatamodeld item) , type a name

2. Client on the xxxx.xcdatamodeld file and in the attribute page, set the current version



Step 2:

1. In App delegate , in method "persistentStoreCoordinator" change as follow:

- (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
if (__persistentStoreCoordinator != nil) {
return __persistentStoreCoordinator;
}

NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"WorkXP.sqlite"];

NSError *error = nil;
__persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];

// handle db upgrade
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,
[NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil];

if (![__persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error]) {
// Handle error


return __persistentStoreCoordinator;
}


After that, for a lightweight data migration, user don't need to remove the old version app before they install the new one.



Monday, October 1, 2012

25 iOS design resources


Here is the link for 25 iOS design resources:

http://blog.jobbole.com/26093/