-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


Colibri-ui

, 10 2017 . 14:14 +
C , -, . , , .

, - , , -. , , !!! github: colibri-ui colibri-ui-template .

pvivanov Lidiyatullina




?


2013 , (iOS/Android).

, .

( ), , .

- , , -. 8 ( !).

. !

?


- , :

  • ;
  • .

, - , , .

. :

  1. .
    , .., , .
  2. , ;
  3. Android iOS;
  4. ;
  5. .


.
:

  • 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

. , , , . - , .

, , , . .

,


, .

  1. . , , , . appium.
  2. , , BDD-.
  3. iOS Android.
  4. Mac Pro. Jenkins, .
  5. .

:

  1. front- backend-. 8 ( 8 1 ).
  2. ;
  3. , 8 1 . , . :)


.

, github: colibri-ui colibri-ui-template . !

- ( ) .
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/335278/


: [1] []
 

:
: 

: ( )

:

  URL