Tag: bdd

unit testing不调用viewDidAppear方法

我正在使用Specta来创build一些testing,但我似乎无法得到这个基本的通过。 该应用程序本身工作正常,但这个testing不会通过。 视图控制器 – (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [self showLogin]; } – (void)showLogin { [self presentViewController:[ETLoginVC new] animated:NO completion:nil]; NSLog(@"PresentedVC: %@", [self.presentedViewController class]); } 这个日志: PresentedVC: ETLoginVC 眼镜 #import "Specs.h" #import "ETLoadingVC.h" #import "ETLoginVC.h" SpecBegin(ETLoadingVCSpec) describe(@"ETLoadingVC", ^{ __block ETLoadingVC *loadingVC; beforeEach(^{ loadingVC = [[ETLoadingVC alloc] initWithUserDefaults:nil]; }); afterEach(^{ loadingVC = nil; }); describe(@"no current user […]

如何使用Frank Cucumber从UIImagePickerController中select图片?

我试图使用BDD技术来检查在iPhone模拟器中使用Frank的导入图片处理。 问题是,我不能调用从UIImagePickerControllerSourceTypePhotoLibrary源select图像的最后一步(启动UIImagePickerController是很容易使用“触摸” – button上的命令)。 当我看到模拟器中保存的图像时,它总是卡在进度中。 弗兰克Symbiote说,我想触摸的对象是一个“PLAlbumViewCell”的对象。

在MonkeyTalk IDE Javascript文件中logging一个variables的值

我正在使用MonkeyTalk IDE Beta2来testingiPad应用程序。 我从MonkeyTalk IDE中导出了JavaScript,并获得了一个新的.js文件。 我将Verify命令的布尔值存储在一个var并希望查看它的值是什么,并相应地执行自定义逻辑。 我尝试了document.write , console.log和alert使用的JavaScript,但得到了一个错误,他们没有定义。 请帮我解决一下这个。 另外,是否有可能将testing结果输出为XML(如FoneMonkey)或Excel电子表格或类似的东西? 先谢谢你。