1)When I use feature "manage datasource" of Ranorex to data driven. If all case true, program will return success. But if i have a false case, it will stop program immediately and return error Validation failed. Ex : I have 3 case, case 1 is false. Output will be 1x Failed and 2x Blocked. So, I want to run all case including false case. Output will not be any case blocked. I tried using check variable to call Validate.Fail() but still not be. And i don't want to use normal connections by C# to Excel.
void ITestModule.Run(){
Host.Local.RunApplication("C:\\Users\\FSU1.TEST\\Downloads\\Calculator.exe", "", "C:\\Users\\FSU1.TEST\\Downloads", false);
//run test Calculator
Button btnX = "/form[@controlname='Calculator']/button[@controlname='Button"+_btn1+"']";
btnX.Click();
MyRepo.Calculator.ButtonTimes.Click();
Button btnY = "/form[@controlname='Calculator']/button[@controlname='Button"+_btn2+"']";
btnY.Click();
MyRepo.Calculator.ButtonEqual.Click();
//set result
Text text = "/form[@controlname='Calculator']/?/?/text[@accessiblerole='Text']";
//Validate result
Validate.AreEqual(text.TextValue, value, "True");
MyRepo.Calculator.ButtonClear.Click();
MyRepo.Calculator.Close.Click();
}
And here is data binding data binding image
And another problem: 2)In which I have a column "result" to write result test. Can I use binding to write it ?
Thanks Sargon
Aucun commentaire:
Enregistrer un commentaire