public class UserMessage extends Object
<messages>
<trace>
<message>
<txt><![CDATA[Selenium started.]]></txt>
<created_time>1334253721</created_time>
</message>
</trace>
<debug>
<message>
<txt><![CDATA[OK - word Selenium typed to input, snapshotted to 02_typed_entire.png]]></txt>
<created_time>1334253722</created_time>
</message>
</debug>
<info>
<message>
<txt><![CDATA[OK - clicked, snapshotted to 03_searched_entire.png]]></txt>
<created_time>1334253753</created_time>
</message>
</info>
</messages>
Modifier and Type | Field and Description |
---|---|
Date |
created_time |
UserMessageLevel |
level |
String |
txt |
Constructor and Description |
---|
UserMessage(Node node,
UserMessageLevel level) |
UserMessage(String txt,
Date created_time) |
Modifier and Type | Method and Description |
---|---|
static SortedMap<UserMessageLevel,List<UserMessage>> |
getAllUserMessages(Document doc)
Collects all messages in the document and converts them into map of the following form:
[key - UserMessageLevel] => [value - list of the UserMessage objects of the given level]
|
String |
getCreatedTime() |
static SortedMap<UserMessageLevel,List<UserMessage>> |
getPlatformUserMessages(Node nodePlatform)
Collects all messages for the given platform and converts them into map of the following form:
[key - UserMessageLevel] => [value - list of the UserMessage objects of the given level]
|
String |
getTxt() |
String |
toString() |
public UserMessageLevel level
public String txt
public Date created_time
public UserMessage(Node node, UserMessageLevel level) throws Exception
Exception
public String getTxt()
public String getCreatedTime()
public static SortedMap<UserMessageLevel,List<UserMessage>> getAllUserMessages(Document doc) throws Exception
doc
- execution results documentException
public static SortedMap<UserMessageLevel,List<UserMessage>> getPlatformUserMessages(Node nodePlatform) throws Exception
nodePlatform
- parent node of the messagesException
Copyright © 2004-2013 Deep Shift Labs. All Rights Reserved.