feat: add locatorName and testData to execution step results
This commit is contained in:
parent
9430435ddd
commit
27fc78e257
|
|
@ -39,6 +39,15 @@ public class StepResult {
|
||||||
@Column(name = "step_type")
|
@Column(name = "step_type")
|
||||||
private String stepType = "ACTION";
|
private String stepType = "ACTION";
|
||||||
|
|
||||||
|
@Column(name = "locator_name")
|
||||||
|
private String locatorName;
|
||||||
|
|
||||||
|
@Column(name = "object_detail", columnDefinition = "text")
|
||||||
|
private String objectDetail;
|
||||||
|
|
||||||
|
@Column(name = "test_data", columnDefinition = "text")
|
||||||
|
private String testData;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
@ -110,4 +119,28 @@ public class StepResult {
|
||||||
public void setStepType(String stepType) {
|
public void setStepType(String stepType) {
|
||||||
this.stepType = stepType;
|
this.stepType = stepType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getLocatorName() {
|
||||||
|
return locatorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocatorName(String locatorName) {
|
||||||
|
this.locatorName = locatorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getObjectDetail() {
|
||||||
|
return objectDetail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObjectDetail(String objectDetail) {
|
||||||
|
this.objectDetail = objectDetail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTestData() {
|
||||||
|
return testData;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTestData(String testData) {
|
||||||
|
this.testData = testData;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -400,6 +400,9 @@ public class AgentService {
|
||||||
sr.setStepIndex(i + 1);
|
sr.setStepIndex(i + 1);
|
||||||
sr.setActionName((String) stepData.getOrDefault("actionName", "unknown"));
|
sr.setActionName((String) stepData.getOrDefault("actionName", "unknown"));
|
||||||
sr.setStepType((String) stepData.getOrDefault("stepType", "ACTION"));
|
sr.setStepType((String) stepData.getOrDefault("stepType", "ACTION"));
|
||||||
|
sr.setLocatorName((String) stepData.get("locatorName"));
|
||||||
|
sr.setObjectDetail((String) stepData.get("objectDetail"));
|
||||||
|
sr.setTestData((String) stepData.get("data"));
|
||||||
|
|
||||||
Object execStatus = stepData.get("executed_status");
|
Object execStatus = stepData.get("executed_status");
|
||||||
sr.setExecutedStatus(execStatus != null ? (Integer) execStatus : 0);
|
sr.setExecutedStatus(execStatus != null ? (Integer) execStatus : 0);
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE step_results ADD COLUMN locator_name VARCHAR(255);
|
||||||
|
ALTER TABLE step_results ADD COLUMN object_detail TEXT;
|
||||||
|
ALTER TABLE step_results ADD COLUMN test_data TEXT;
|
||||||
Loading…
Reference in New Issue