The purpose of the session is to teach you how to upload your apk to testers. We'll utlize TestFairy Platform to achieve it.
1.Install TestFairy Plugin
2.Apply for a TestFairy Account
3.Add your testers to your TestFairy account
4.Set project configurations for TestFairy
5.Build apk and Observe your results
2014年6月1日 星期日
2014年5月30日 星期五
CI: Execute Static Analysis through Ant on Jenkins
The purpose of this article focuses on software quality, and introduces these tools like uses lint, find bugs and checkstyle tool are how to complete the tasks.
1.Lint
Install Lint
The stage is similar to the steps which the above session mentioned, as the following diagram.
Set Android SDK Root path on Jenkins’s Configuration
The stage is similar to the steps which the above session mentioned, as the following diagram.
Set Project Configurations and Post-build Actions
The setting of the following sample is for Windows cmd, so the sample is to use “Windows Batch Command”. If using Linux, please change into “Shell Command”, as the following diagram.
Build a Project, as the following diagrams.
Observe results
After successfully building this project, you can checkup whether the workspace about it exists a lint-results.xml file. Then, the final result shows the following diagrams.
2.CheckStyle and FindBugs
Install Findbug and CheckStyle
The stage is similar to the steps which the above session mentioned, as the following diagrams.
Create a custom_rules.xml file
The purpose of the file is to describe how to construct results about FindBugs and CheckStyle, as the following source code.
Add libs and file about FindBugs and CheckStyle
After the above steps, you should put the resources about them into your project, as the following diagrams. The Urls of FindBugs and CheckStyle lib are http://findbugs.sourceforge.net/ and http://checkstyle.sourceforge.net/.
1.Lint
Install Lint
The stage is similar to the steps which the above session mentioned, as the following diagram.
Set Android SDK Root path on Jenkins’s Configuration
The stage is similar to the steps which the above session mentioned, as the following diagram.
Set Project Configurations and Post-build Actions
The setting of the following sample is for Windows cmd, so the sample is to use “Windows Batch Command”. If using Linux, please change into “Shell Command”, as the following diagram.
Build a Project, as the following diagrams.
Observe results
After successfully building this project, you can checkup whether the workspace about it exists a lint-results.xml file. Then, the final result shows the following diagrams.
2.CheckStyle and FindBugs
Install Findbug and CheckStyle
The stage is similar to the steps which the above session mentioned, as the following diagrams.
Create a custom_rules.xml file
The purpose of the file is to describe how to construct results about FindBugs and CheckStyle, as the following source code.
Add libs and file about FindBugs and CheckStyle
After the above steps, you should put the resources about them into your project, as the following diagrams. The Urls of FindBugs and CheckStyle lib are http://findbugs.sourceforge.net/ and http://checkstyle.sourceforge.net/.
Set Project Configurations, as the following diagram
Execute your project, as the following diagrams
Observe final results, as the following diagrams
3.References
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
Website: http://ithelp.ithome.com.tw/question/10109773
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
Website: http://ithelp.ithome.com.tw/question/10109773
2014年5月29日 星期四
CI: Build an Android project through Ant on Jenkins
This article will introduce how to utilize a project from a Git pugin to complete the whole steps, and include Installing Git Plugin. You can try to read the article, if not understanding how to install Jenkins.
1.Install Git Plugin
You can enter Jenkins’s dashboard to enter Jenkins -> Manage Jenkins -> Manage Plugins, and choose “Available” label as well as search it through the “Filter” tool, as the following diagram.
2.Execute a Project
Set a Project
You can select “New Item” icon and input a project name, which is used to identify your task, as well as choose “Build a free-style-software project”, as the following diagram.
Set Configurations
You can enter Jenkins configuration, and fill out values about Git which you want to input. On the other hand, you need to setup another values about Ant, which is a kind of tool building your source code and constructing executive files for Android. Finally, you can set an option about sending an e-mail to notify you after building failures, but this option is optional, as the following diagrams.
Set Project Configurations
First, after saving the above results, you should select project -> Confingure. Then, you can input your Git resource and information, as the following diagrams.
Set Build Information
The purpose of this step is to build your source code and construct an apk file through Ant tool; however, you should offer a build.xml file in your project through Ant tool, as the following diagrams. If skipping the step which the above mentioned, you may be fail on this stage.
Build a project
After setting project configurations, you can press the build icon to complete the stage. Then, you will see the results after the project is successfully built, as the following diagrams.
3.References
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
1.Install Git Plugin
You can enter Jenkins’s dashboard to enter Jenkins -> Manage Jenkins -> Manage Plugins, and choose “Available” label as well as search it through the “Filter” tool, as the following diagram.
2.Execute a Project
Set a Project
You can select “New Item” icon and input a project name, which is used to identify your task, as well as choose “Build a free-style-software project”, as the following diagram.
Set Configurations
You can enter Jenkins configuration, and fill out values about Git which you want to input. On the other hand, you need to setup another values about Ant, which is a kind of tool building your source code and constructing executive files for Android. Finally, you can set an option about sending an e-mail to notify you after building failures, but this option is optional, as the following diagrams.
Set Project Configurations
First, after saving the above results, you should select project -> Confingure. Then, you can input your Git resource and information, as the following diagrams.
Set Build Information
The purpose of this step is to build your source code and construct an apk file through Ant tool; however, you should offer a build.xml file in your project through Ant tool, as the following diagrams. If skipping the step which the above mentioned, you may be fail on this stage.
Build a project
After setting project configurations, you can press the build icon to complete the stage. Then, you will see the results after the project is successfully built, as the following diagrams.
3.References
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
2014年5月27日 星期二
CI: Installation Jenkins on Widows
1.Purpose
The spirit of the article is how to install Jenkins Server on Windows, create a Build Job, and observe the final result about building job. If you want to successfully complete the installation, you should setup JDK and Android SDK before.
1.1. Installation
After installing JDK and Android SDK, you can download Jenkins from the URL – http://mirrors.jenkins-ci.org/war/, and input the following instructions via Windows cmd.exe to install Jenkins.war, as the first diagram.
Then, you will see that the instructions is executing on the cmd and the whole result of Jenkins has been installed, as the following results.
1.2. General Settings
Before you use Jenkins, you can choose Jenkins -> Manage Jenkins -> Manage Plugins through Jenkins’s dashboard, and install the following plugins as well as set Jenkins’s language, as the following diagram.
Then, when completing the above steps, you can select Jenkins -> Manage Jenkins -> Configure System to set general system parameters, as the following diagrams.
2.References
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
The spirit of the article is how to install Jenkins Server on Windows, create a Build Job, and observe the final result about building job. If you want to successfully complete the installation, you should setup JDK and Android SDK before.
1.1. Installation
After installing JDK and Android SDK, you can download Jenkins from the URL – http://mirrors.jenkins-ci.org/war/, and input the following instructions via Windows cmd.exe to install Jenkins.war, as the first diagram.
Then, you will see that the instructions is executing on the cmd and the whole result of Jenkins has been installed, as the following results.
1.2. General Settings
Before you use Jenkins, you can choose Jenkins -> Manage Jenkins -> Manage Plugins through Jenkins’s dashboard, and install the following plugins as well as set Jenkins’s language, as the following diagram.
Then, when completing the above steps, you can select Jenkins -> Manage Jenkins -> Configure System to set general system parameters, as the following diagrams.
2.References
Book: CI – Continuous integration
Website: http://jenkins-ci.org/
2014年5月21日 星期三
CI: Jenkins Introduction
The purpose of the article is let you know what Jenkins for Windows is. Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle.
Jenkins provides continuous integration services for software development. It is a server-based system running in a servlet container such as Apache Tomcat. It supports SCM tools including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, Clearcase and RTC, and can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands.
Work flow likes the following diagram, and they are divided to some stages:
1.Coding and push into Git remote repository
Jenkins provides continuous integration services for software development. It is a server-based system running in a servlet container such as Apache Tomcat. It supports SCM tools including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, Clearcase and RTC, and can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands.
Work flow likes the following diagram, and they are divided to some stages:
1.Coding and push into Git remote repository
2.Jenkins gets source code from Git, and runs static analysis, such as lint check, FindBugs, CheckStyle...etc.
3.Run Unit Test or Mokey Test
4.Build Apk
5.Deploy
References - Jenkins: https://jenkins-ci.org/
2014年4月16日 星期三
Tool: Online Tools about UML or Wireframe
The following tools is I think it better, and I wanna recommend. You can try to use them if having needs on your job.
1.UML:http://www.techrepublic.com/pictures/five-free-apps-for-creating-diagrams-in-your-browser/10/
a. ASCII Flow
b. Creately
c. Draw.IO
d. Gliffy
e. yUML
2.wireframe:http://www.sitepoint.com/5-free-wireframe-applications/
a. Moqups.com
b. Lumzy.com
c. Gliffy.com
d. Lovely Charts (web)
e. Google Drive Drawings
1.UML:http://www.techrepublic.com/pictures/five-free-apps-for-creating-diagrams-in-your-browser/10/
a. ASCII Flow
b. Creately
c. Draw.IO
d. Gliffy
e. yUML
2.wireframe:http://www.sitepoint.com/5-free-wireframe-applications/
a. Moqups.com
b. Lumzy.com
c. Gliffy.com
d. Lovely Charts (web)
e. Google Drive Drawings
2014年3月2日 星期日
OO: UML的基本名詞與關聯
在一些論壇或是討論版,總覺得有些人對於物件導向的以下名詞容易搞混,尤其當看到有人講Delegation是一種模式時,是非常奇妙的事情。這邊整理成一張圖,以及關係的排序(圖中的數字)。另外,圖片中有每種關係在UML的呈現,也附上一個Abstract Facotry(抽象工廠)模式的類別圖,以供比對關聯。
- Generalization(一般化): 一個繼承關係,由下往上看時則是一般化。如何記一般化?當把所有子類別提取共同屬性與方法時,這時父類別是大家共同擁有的,既然共同擁有,當然比較一般囉!
- Specialization(特殊化): 一個繼承關係,由上往下看時則是特殊化。如何記特殊化?當把父類別產生出不同子類別時,每個子類別都是特別的物件,當然就是特殊囉!
- Inheritance(繼承): 在Java程式中使用Extends關鍵字,關係最強,因為父類別的所有,子類別皆該括承受。
- Realization(實現) and Implementation(實作|實現): 在Java程式中使用Implements關鍵字,而UML泛指抽象化,包含抽象類別與介面。
- Composition(組成): 可以想像成某物件的專屬物件,在Java實作中則是Inner class的概念。
- Aggregation(聚合): Whole-Part的概念,也就是產品和零件的關係,泛指通用零件。
- Association(關聯): 在UML分為相互關聯與可導覽的關聯,前者是雙方皆知道彼此存在,後者只有一方知道。
- Dependency(依賴): 關係最弱的一種,在程式實作中,通常以回傳值或是方法中參數的形式存在。
- Delegation(委派): 並非為設計模式,只是物件導向程式中的一種關係或是實作方法。可以想像成一個物件,將部分功能委由另一個物件來做,則是Delegation的概念。
- Design pattern(設計模式): 一種程式設計的經驗,根據四人幫一書中的定義,一個Pattern基本具有四個特徵:名稱、問題、解決方案與成效。
訂閱:
意見 (Atom)








































