C , -, . , , .
, - , , -. , , !!! github:
colibri-ui colibri-ui-template .
pvivanov Lidiyatullina
?
2013 , (iOS/Android).
, .
( ), , .
- , , -. 8 ( !).
. !
?
- , :
, - , , .
. :
- .
, .., , .
- , ;
- Android iOS;
- ;
- .
.
:
- Robotium
- Espresso
- UI Recorder
- Keep it Functional
- Calabash
- Appium
. Appium , .
- . - . , BDD- .
, Gherkin, Java. JBehave.
, ?
Then " "
When " " " "
When " "
Then " "
When " " " "
When " "
. , - , - , , . , , , , :
When " "
, iOS Android. , , . , , .
, , , ?
. , . , , . XPath.
. , , , , , .
:
- Content description Android;
- ResourceId / AccessabilityIdeitificator . , , Android / iOS ;
- Text , , , ;
- XPath XPath xml-. , .
(Name in story) , Content description / ResourceId / AccessabilityIdeitificator / Text / XPath.
.csv , . , PageObject, .
, ! , , , colibri-ui .
Appium , . udid ( ) . , - . , udid , Mac.
, .property json-. .property udid , json- (. colibri-ui-template).
, udid !
Android adb devices, iOS " instruments -s devices | grep -v (Simulator|$(id -un))" . Android , , iOS . - , instruments -s devices | grep Simulator.
, , . .
, Mac ADB Driver Xcode . .
, . , . , , . - , : , , , ..
. , , .
#userName#, property .
, , .
:
user.property:
paymentAccountRur=0278
beneficiarAccountRur=0163
beneficiarAccountUsd=0889
beneficiarAccountEur=0038
.
Uber-
, , -. , , , , , . .
guie, DI, . , appium-java-client, Spring, Spring.
Sping . JBeHave Allure report. .
-, , ( ). , . .
, . , , . . .
, .
:
./gradlew --info clean test --tests "*AndroidStories*" -Dorg.gradle.project.platform=Nexus6p_android6 -Dorg.gradle.project.user=6056789 -Dorg.gradle.project.testType=smokeNewReg -Dorg.gradle.project.buildVersion=9.0.0.7,development
, Android (--tests "*AndroidStories*"). :
, , Nexus6p_android6. , . .
device.properties :
UDID=ENU14008659
deviceName=Nexus6p
test_node.json .
6056789, . , . user.properties.
smokeNewReg,
Meta.
Meta .
Meta:
@regressCycle
@smokeCycle
testCycle.properties .
smoke=+smokeCycle,+oldRegistration,-skip
smokeNewReg=+smokeCycle,+newRegistrationCardNumber,-skip
smokeNewAccountReg=+smokeCycle,+newRegistrationAccountNumber,-skip
regress=+regressCycle,+oldRegistration,-skip
regressNewReg=+regressCycle,+newRegistrationCardNumber,-skip
, Meta Matcher JBehave, .
, , , . environmentAndroid.properties , , .
remoteFilePathReleaseAndDevelopment=http://mobile/android/mobile-%2$s/%1$s/mobile-%2$s-%1$s.apk
, , , Jenkins. , job Jenkins .
. Mac Pro, .
allure report. , allure generate directory-with-results
. , , , . - , .
, , , . .
,
, .
- . , , , . appium.
- , , BDD-.
- iOS Android.
- Mac Pro. Jenkins, .
- .
:
- front- backend-. 8 ( 8 1 ).
- ;
- , 8 1 . , . :)
.
, github:
colibri-ui colibri-ui-template . !
- ( )
.
https://habrahabr.ru/post/335278/