public class BaseLog extends Object
SeLionReporter
should leverage this class for the basic functionalities and add up only customizations as and
where required.
This is an internal class for use in Selion and clients of SeLion should have no need for referencing this public
class.Constructor and Description |
---|
BaseLog() |
BaseLog(String json)
Parses the JSON string and load it to BaseLog instance
For example; |
Modifier and Type | Method and Description |
---|---|
String |
getHref()
Gets the file location of the page source.
|
String |
getLocation()
Gets the url of the current page.
|
String |
getMsg()
Gets the msg.
|
String |
getScreen()
Gets the file location of the screenshot.
|
String |
getScreenURL()
Replaces any occurances of \\ in the screen shot file location with /
|
boolean |
hasLogs() |
protected void |
parse(String json)
Parsing the JSON string using Gson library.
|
void |
setHref(String href)
Sets the file location of the page source.
|
void |
setLocation(String location)
Sets the url of the current page.
|
void |
setMsg(String msg)
Sets the msg.
|
void |
setScreen(String screen)
Sets the file location of the screenshot.
|
String |
toString() |
public BaseLog()
public BaseLog(String json)
{ "msg": "Google Page with SeLion", "screen": "screenshots/bd0bac20-9ad0-41b2-bc82-f2a856054129.png", "location": "https://www.google.com/?gws_rd=ssl", "href": "sources\\bd0bac20-9ad0-41b2-bc82-f2a856054129.source.txt" }
json
- The JSON stringprotected void parse(String json)
json
- JSON Stringpublic boolean hasLogs()
true
if there are logs that need to be dumped into the TestNG reports via
Reporter.log(String)
.public String getMsg()
public void setMsg(String msg)
msg
- the new msgpublic String getScreen()
public String getScreenURL()
public void setScreen(String screen)
screen
- the file locationpublic String getLocation()
public void setLocation(String location)
location
- the new locationpublic String getHref()
public void setHref(String href)
href
- the new hrefCopyright © 2016 PayPal Open Source. All rights reserved.