2016年9月8日 星期四

018.2 Android Radio Button Example (UI test automation by Appium)

with Appium and unittest framework, there are two test cases provided for this App

  • ID: test_add_string_and_make_lowercase
    • description: [FAST] type String, click Lower, get string back
  • ID: test_add_string_and_make_uppercase
    • description: [FAST] type String, click UpperCase, get STRING back



2016年8月29日 星期一

018.1 Android Radio Button Example (monkey test by adb shell)

Monkey testing! This article tells how to do simple "dumb monkey test" on Android App.

From wiki https://en.wikipedia.org/wiki/Monkey_testing

Dumb monkey tests
Dumb monkeys, also known as "ignorant monkeys", are usually identified by the following characteristics:
  • Have no knowledge about the application or system
  • Don't know if their input or behavior is valid or invalid
  • Don't know their or the system's capabilities, nor the flow of the application
  • Can find fewer bugs than smart monkeys, but can also find important bugs that are hard to catch by smart monkeys
Let's Monkey ~ \m/

2016年8月27日 星期六

018 Android Radio Button Example

Exercise

to demo how to create a simple Android APP, which provides one Plain Text field and few radio buttons.
* the plain text button is designed for user input (presumption: ASCII string)
* those radio buttons are designed to convert case of content inside Plain Text field



2016年6月5日 星期日

014.2 docker-enabled squid proxy with dummy ntlm

Step by Step for Ubuntu 16.04 LTS

https://docs.docker.com/engine/installation/linux/ubuntulinux/

Request:

1. HTTP Proxy which supporting Dummy NTLN Authentication
2. Dummy NTLM return OK for all credential

Step 1. install Docker on Ubuntu

...

Step 2. prepare dockerfile

https://github.com/vash-hsu/docker

Step 3. docker build

docker build -t ubuntu_squid_dummy_ntlm -f ubuntu.dockerfile.dummy-ntlm-proxy.txt .

Step 4. docker run

docker run --name proxy_dummy_ntlm -d -p 3128:3128 ubuntu_squid_dummy_ntlm

Step 5. quick test

curl --verbose -x http://localhost:3128 https://www.google.com

curl --verbose -x http://localhost:3128 -U hello:kitty https://www.google.com


curl --verbose -x http://localhost:3128 -U hello:kitty --proxy-ntlm https://www.google.com


curl --verbose -x http://localhost:3128 -U hello\\world:kitty --proxy-ntlm https://www.google.com


curl --verbose -x http://localhost:3128 -U hello\\world:kitty --proxy-anyauth https://www.google.com



Step 6. docker logs

docker ps -qa | awk '{ printf("docker logs %s\n",$1) }' | sh
or
docker logs -f proxy_dummy_ntlm

Step 7. stop

docker kill `docker ps -qa`
docker rm `docker ps -qa`

Step 8. remove

docker rmi ubuntu_squid_mixed

2016年6月4日 星期六

014.1 docker-enabled squid proxy with both basic and digest

Step by Step for Ubuntu 16.04 LTS

https://docs.docker.com/engine/installation/linux/ubuntulinux/

Request:

1. HTTP Proxy which supporting both Basic and Digest Authentication
2. Test Account root:admin for both Basic and Digest
3. Test Account basic:basic for Basic Authentication
4. Test Account digest:digest for Digest Authentication
5. Test which option make libcurl find the secure one authentication method

2015年12月7日 星期一

017 powershell file with unique SHA1 (windows)

How to Create Powershell Samples with Unique SHA1

powershell -executionpolicy bypass -File powershell.ps1 -howmany 20

powershell -executionpolicy bypass -File 0019.ps1


016 creative zip file (linux shell) homework (3&4)

Homework #3 How to print a pascal triangle

Answer: