Shiratesã使ã£ã¦ã¿ãã - testrunãã¡ã¤ã« -
ååã®è¨äºã§ã¯Shiratesã®ç°å¢æ§ç¯ã¨ç°¡åãªãã¹ãã³ã¼ãã®ä½æã説æãã¾ããã wave-diary.hatenablog.com
æ¬è¨äºã§èª¬æããå 容ãæå ã§å®è¡ããå ´åã¯å ã«ååã®è¨äºã«å¾ã£ã¦ããã¸ã§ã¯ããä½æãã¦ãã ããã ã¾ãã¯å®æããããã¸ã§ã¯ãããã¡ãããå ¥æãã¦ãã ããã
Shiratesã®ãã©ã¡ã¼ã¿ã¼è¨å®
Shirates㯠ãã©ã¡ã¼ã¿ã¼æ§æãã¡ã¤ã« ã§èµ·åãã©ã¡ã¼ã¿ã¼ãè¨å®ã§ãã¾ãã
testrun.propertiesãã¡ã¤ã«
testrun.propertiesãã¡ã¤ã«ãç·¨éãã¦ä»¥ä¸ã®å 容ã«æ¸ãæãã¾ãã
#testrun ## OS -------------------- #os=ios ## Config -------------------- ## [Android] android.configFile=testConfig/settingsConfig.json android.profile=Android 12 ## [iOS] #ios.configFile= #ios.profile= ## Stub -------------------- #stubServerUrl=http://stub1 ## Test mode -------------------- #noLoadRun=true ## Priority filter -------------------- #must=false #should=false #want=false #none=false ## Log -------------------- logLanguage=ja #enableSyncLog=false #enableTestList=false #enableSpecReport=false #enableInnerMacroLog=true #enableInnerCommandLog=true #enableSilentLog=true #enableTapElementImageLog=true #enableXmlSourceDump=false #enableRetryLog=false #enableTrace=true #enableShellExecLog=true #enableTimeMeasureLog=true #enableImageMatchDebugLog=true #testResults= #testListDir= ## Screenshot -------------------- #screenshotScale=0.333333 #autoScreenshot=false #onChangedOnly=false #onCondition=false #onAction=false #onExpectation=false #onExecOperateCommand=false #onCheckCommand=false #onScrolling=false #manualScreenshot=false ## Image Matching -------------------- #imageMatchingScale= #imageMatchingThreshold= #imageMatchingCandidateCount= ## Appium -------------------- appiumServerUrl=http://127.0.0.1:4720/ appiumPath=appium appiumArgs=--session-override --relaxed-security #appiumArgsSeparator= #appiumServerStartupTimeoutSeconds= #appiumSessionStartupTimeoutSeconds= #implicitlyWaitSeconds= #appPackageFile= #appPackageDir= #packageOrBundleId= #startupPackageOrBundleId= #startupActivity= ## TestDriver -------------------- #resuseDriver= #retryMaxCount= #retryTimeoutSeconds= #retryIntervalSeconds= ## App operation -------------------- #appIconName= #tapAppIconMethod= #tapAppIconMacro= #shortWaitSeconds= #waitSecondsForAnimationComplete= #waitSecondsOnIsScreen= #waitSecondsForConnectionEnabled= #swipeDurationSeconds= #flickDurationSeconds= #swipeMarginRatio= #scrollVerticalMarginRatio= #scrollHorizontalMarginRatio= #tapHoldSeconds= #syncWaitSeconds= ## Custom -------------------- #CustomObject.scan.dir=src/test/kotlin ## Macro -------------------- #MacroObject.scan.dir=src/test/kotlin ## Spec-Report -------------------- #specReport.replace.MANUAL= #specReport.replace.MANUAL.reason= #specReport.replace.SKIP= #specReport.replace.SKIP.reason= ## misc #android.swipeOffsetY=-20 #ios.swipeOffsetY=-5 #xmlSourceRemovePattern= #boundsToRectRatio= #ios.selectIgnoreTypes=XCUIElementTypeCell,XCUIElementTypeApplication #android.titleSelector=<#action_bar||#toolbar||#app_bar>:descendant(${title}||@${title}) #ios.titleSelector=<.XCUIElementTypeNavigationBar>:descendant(.XCUIElementTypeStaticText&&${title}) #android.webTitleSelector=.android.webkit.WebView&&${webTitle} #ios.webTitleSelector=<.XCUIElementTypeWebView>:descendant(${webTitle}&&visible=false) #jquerySource=
å¤ãã®ãã©ã¡ã¼ã¿ã¼ã¯#ã§ã³ã¡ã³ãã¢ã¦ãããã¦ãã¾ããå¿ è¦ã«ãªã£ãå ´åã¯#ãåé¤ãã¦è¨å®ãæå¹åãã¾ãã ãã©ã¡ã¼ã¿ã¼ã®è©³ç´°ã«ã¤ãã¦ã¯Parametersãåç §ãã¦ãã ããã
使ç¨é »åº¦ã®é«ããã©ã¡ã¼ã¿ã¼ã®ã»ã¯ã·ã§ã³ã以ä¸ã«ç´¹ä»ãã¾ãã
Test Modeã»ã¯ã·ã§ã³
é常ã¢ã¼ãã¨ç¡è² è·å®è¡ã¢ã¼ãã®åãæ¿ããè¡ããã¨ãã§ãã¾ãã
## Test mode -------------------- #noLoadRun=true
ã³ã¡ã³ãã解é¤ãã¦
noLoadRun=true
ãæå®ããã¨ç¡è² è·å®è¡ã¢ã¼ãã«ãªãã¾ããç¡è² è·å®è¡ã¢ã¼ãã§ã¯å®éã®ãã¹ãå®è¡ãè¡ãããã¹ãä»æ§æ¸ï¼Spec-Reportï¼ã®ã¿ãåºåãã¾ãã
Logã»ã¯ã·ã§ã³
ãã°ã«é¢ããè¨å®ãè¡ããã¨ãã§ãã¾ãã
## Log -------------------- logLanguage=ja #enableSyncLog=false #enableTestList=false #enableSpecReport=false #enableInnerMacroLog=true #enableInnerCommandLog=true #enableSilentLog=true #enableTapElementImageLog=true #enableXmlSourceDump=false #enableRetryLog=false #enableTrace=true #enableShellExecLog=true #enableTimeMeasureLog=true #enableImageMatchDebugLog=true #testResults= #testListDir=
logLanguage
ãã°ã®è¨èªã§ããããã©ã«ãã¯è±èªã§ããæ¥æ¬èªã«è¨å®ããå ´åã¯
logLanguage=ja
ãæå®ãã¾ãã
testResults
ãã°ã®åºåãã£ã¬ã¯ããªãå¤æ´ããå ´åã¯æ¸ãæãã¾ããããã©ã«ãã¯ãã¦ã³ãã¼ããã£ã¬ã¯ããªä¸ã®TestResults
ãã©ã«ãã§ãã
Appiumã»ã¯ã·ã§ã³
Appiumã«é¢ããè¨å®ãè¡ããã¨ãã§ãã¾ããï¼Appiumã®ãã詳細ãªè¨å®ã¯testConfigãã¡ã¤ã«ã§è¡ãã¾ããï¼
## Appium -------------------- appiumServerUrl=http://127.0.0.1:4720/ appiumPath=appium appiumArgs=--session-override --relaxed-security #appiumArgsSeparator= #appiumServerStartupTimeoutSeconds= #appiumSessionStartupTimeoutSeconds= #implicitlyWaitSeconds= #appPackageFile= #appPackageDir= #packageOrBundleId= #startupPackageOrBundleId= #startupActivity=
appiumServerUrl
Appiumã§ä½¿ç¨ããURLãå¤æ´ãããå ´åã¯æ¸ãæãã¾ãããã¨ãã°ãã¼ãçªå·ã4721ã«å¤æ´ãããå ´åã¯ä»¥ä¸ã®ããã«æ¸ãæãã¾ãã
appiumServerUrl=http://127.0.0.1:4721/
appiumArgs
Appiumã®èµ·åãªãã·ã§ã³ãå¤æ´ãããå ´åã¯æ¸ãæãã¾ãã
æ¥æ¬èªã¢ã¼ãã§ã®ãã¹ãã®å®è¡
æ¥æ¬èªã«è¨å®ããç¶æ ã§ååã®è¨äºã§ä½æããããã°ã©ã ãå®è¡ããã¨ä»¥ä¸ã®ããã«åºåããã¾ãã
æ¯è¼ã®ããã«è±èªã¢ã¼ãã§ã®åºåã以ä¸ã«è¨è¼ãã¾ãã
ãããã®åºåã¯åä¸ã®ãã¹ãã³ã¼ãããåºåãã¦ãã¾ãã
ãã®ããã«Shiratesã¯æ¥æ¬èªã«ããå¯èªæ§ã®é«ããã°ã®åºåããµãã¼ããã¦ãã¾ãã