本文介绍了如何编写Calabash Android的步骤定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新来的calabash android。我出于学习目的为 Twitter Android应用编写了测试用例。但是我感到麻烦了。谁能帮我?如何编写步骤定义?我在功能文件中写道:
I am new to calabash android. I wrote testcases for 'Twitter' android app for learning purpose. But I feel starting trouble. Can any one help me? How do I write step definition? In the feature file I wrote:
Feature: Login feature
Scenario: As a valid user I can log into my app
And I press "Sign In"
Then I see 'Sign In' page
Then I enter '[email protected]' in username
Then I enter 'abc.123' in password
And I press 'Sign In'
Then I should see my home page
如何为上述情况编写步骤定义?
How can I write step definitions for the above scenario?
推荐答案
请遵循以下两个链接:
Follow these two links:
- different steps
- calabash
也可以尝试以下操作:
Also try this: http://www.optimusqa.com/2013/04/10/set-up-android-testing-calabash/
这篇关于如何编写Calabash Android的步骤定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!