Unified Functional Testing Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

LeanFT - Can't view Last Run Results

Highlighted
Occasional Advisor

LeanFT - Can't view Last Run Results

[ Edited ]

Using Intellij and created a LeanFT maven project.  The test runs fine, but afterwards, in the LeanFT pull-down menu, the Veiw Last Run Results item is grayed out. Some form of results are created.. Any ideas?

From my TestRunner.java class, sans imports:

@RunWith(OctaneCucumber.class)
@CucumberOptions(
features = "src/test/java/com/orasi/Features",
//glue the script to a package where the step definitions can be found.
glue = "com.orasi.StepDefinitions",
plugin = {
"pretty",
"json:RunResults/runresults.json",
"junit:RunResults/runresults.xml",
"junit:RunResults/runresults.html"
},
tags = {"@TID42009REV0.4.0"}
)

public class TestRunner {
@test
public void Test() {}
}

From my TestRunner.java class, sans imports:

public class CompleteContctUsForm {

Browser browser;

@Given("^a customer fills in the Contct Us form$")
public void a_customer_fills_in_the_Contct_Us_form() throws Throwable {

ModifiableSDKConfiguration config = new ModifiableSDKConfiguration();
config.setServerAddress(new URI("ws://localhost:5095"));
SDK.init(config);
Reporter.init();

browser = BrowserFactory.launch(BrowserType.FIREFOX);
browser.navigate("http://www.orasi.com");

//Contact Us
browser.describe(WebElement.class, new WebElementDescription.Builder()
.tagName("SPAN").innerText("CONTACT US").outerText("CONTACT US").index(0).build()).click();

//first name
browser.describe(Frame.class, new FrameDescription.Builder()
.id("").name("").index(0).build()).describe(EditField.class, new EditFieldDescription.Builder()
.type("text").tagName("INPUT").name("42712_172270pi_42712_172270").build()).setValue("Jean");
}

@When("^they click the submit button$")
public void they_click_the_submit_button() throws Throwable {

browser.describe(Button.class, new ButtonDescription.Builder()
.buttonType("submit").tagName("INPUT").name("Submit").build()).click();
}

@Then("^they get the thank you message$")
public void they_get_the_thank_you_message() throws Throwable {

browser.close();

Reporter.generateReport();
SDK.cleanup();

}

}

Here are the results:

2017-04-21_11-12-11.png

//Add this to "OnDomLoad" event