APISonar


com.aventstack.extentreports.model.Log.Log

> com > aventstack > extentreports > model > Log > Log
com APIs aventstack APIs extentreports APIs model APIs Log APIs Log APIs

Example 1
private void addLogsFromPreExistingMarkup(Elements logs) {
		for (Element log : logs) {
			Status status = getStatus(log);
			Date timestamp = getTimestamp(log.select(".timestamp").first());
			String details = getDetails(log.select(".step-details").first());
			
			Log logModel = new Log(test);
			logModel.setStatus(status);
			logModel.setDetails(details);
			logModel.setTimestamp(timestamp);

			test.getLogContext().add(logModel);
		}
	}
Example 2
private Log createLog(Status status) {
        Log evt = new Log(this);
        evt.setStatus(status);
        evt.setSequence(test.getLogContext().getAll().size() + 1);
        
        return evt;
    }