搜尋此網誌

2012年7月31日

Mscgen study - Light weight tool to create sequential diagram

http://www.mcternan.me.uk/mscgen/

Sample script:


msc {
  a, "b", c ;

  a->b [ label = "ab()" ] ;
  b->c [ label = "bc(TRUE)"];
  c->c [ label = "process(1)" ];
  c->c [ label = "process(2)" ];
  ...;
  c->c [ label = "process(n)" ];
  c->c [ label = "process(END)" ];
  a<-c [ label = "callback()"];
  ---  [ label = "If more to run", ID="*" ];
  a->a [ label = "next()"];
  a->c [ label = "ac()"];
  b<-c [ label = "cb(TRUE)"];
  b->b [ label = "stalled(...)"];
  a<-b [ label = "ab() = FALSE"];
}



2012年7月27日

Graphviz study note - Powerful graph visualization software to create kind of diagrams

Powerful graph visualization software


1.          Define digraph gr { graph []; }
2.          Define Graph / Node / Edge attributions [fontname, fontsize, style, color, shape, fillcolor, width, height, …]
3.          Define Node / Edge [font, style, color, shape, fillcolor, label, (html table tag), width, …]
4.          Define Subgraphs and Clusters {label, bgcolor, …}
5.          Define Node / Edge relation [dir, color, style, :n|ne|se|…, …]
6.          Relation condition {rank, ordering, …}
7.          Output format

If want to create Sequential Diagram, Mscgen tool may be another good choice.

Reference:

[轉] Drawing Protocol, Packet, Sequence, State, and General Diagrams


Web page to create Sequential Diagram


2012年7月25日

Android GUI Test Concept

2012/7/25



Stage:
1. How to identify components ID?
    a. Components ID (EasyMonkeyDevice, Hierachyviewer, WebDriver)
    b. Coordinates (getevent / sendevent / monkey)
    c. Picture-driven (Sikuli, ImageMagic, OpenCV, TINA, OpenPR, ...)
    d. Hard keys
2. How to collect and backup end-users' operation?
    a. Components ID
    b. Coordinates / Coordinates scaling
    c. Picture-driven
3. How to translate these operations to test scripts?
    a. getevent / sendevent
    b. monkey
    c. Picture-driven
4. How to replay test scripts?
    a. getevent / sendevent
    b. monkey
    c. Picture-driven
5. How to manage test scripts to test suites?
6. How the test will be performed?
    a. One-to-One
    b. One-to-Many
    c. Central control for pairs test
    d. Cloud based / Web based
    e. Keyword-driven
    f. Model-driven
    g. Picture-driven