I managed to use JFCRipper, convert GUI to EFG, and generate test cases. However JFCReplayer doesn't seem to be able to run the generated test cases. I get the following error after "Executing test case…"
ERROR Window ID not found
ERROR GUITAR Exception
edu.umd.cs.guitar.exception.ComponentNotFound
at edu.umd.cs.guitar.replayer.Replayer.executeStep(Unknown Source)
at edu.umd.cs.guitar.replayer.Replayer.execute(Unknown Source)
at edu.umd.cs.guitar.replayer.JFCReplayer.execute(Unknown Source)
at edu.umd.cs.guitar.replayer.JFCReplayerMain.main(Unknown Source)
Thanks,
-Pekka
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My GUI.xml file is quite big: 1268 kb and 41693 lines - could the xml parser run out of memory? No exceptions are visible when the parsing is executed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, made some more debugging, maybe the problem is in xpathExpression:
docGUI = builder.parse(sGUIFile);
NodeList nodeList = docGUI.getElementsByTagName("Value");
for(int i=0;i<nodeList.getLength();i++){
if(((String)nodeList.item(i).getTextContent()).equalsIgnoreCase("w227")) {
log.info("nodeList: index "+i+" value is "+nodeList.item(i).getTextContent());
}
}
Result:
INFO nodeList: index 7729 value is w227
And the exception while getting the window name (I added some more debug info):
INFO EventID: e54
INFO sWidgetID: w227
INFO getting window name….
INFO xpathExpression: /GUIStructure/GUI[Container//Property]/Window/Attributes/Property/Value/text()
INFO docGUI:
INFO nodes: 0
ERROR Window ID not found
ERROR GUITAR Exception
edu.umd.cs.guitar.exception.ComponentNotFound
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
When I try to execute test cases, "Can't open test case source ".....\TestCases.TCF".
Are there any prerequisites for running GUI Replay tool?
Help appreciated.
Thanks,
Sonali Sohoni
Hello,
I managed to use JFCRipper, convert GUI to EFG, and generate test cases. However JFCReplayer doesn't seem to be able to run the generated test cases. I get the following error after "Executing test case…"
ERROR Window ID not found
ERROR GUITAR Exception
edu.umd.cs.guitar.exception.ComponentNotFound
at edu.umd.cs.guitar.replayer.Replayer.executeStep(Unknown Source)
at edu.umd.cs.guitar.replayer.Replayer.execute(Unknown Source)
at edu.umd.cs.guitar.replayer.JFCReplayer.execute(Unknown Source)
at edu.umd.cs.guitar.replayer.JFCReplayerMain.main(Unknown Source)
Thanks,
-Pekka
Can you double check if the right GUI file was used as the replayer input?
Yep, the GUI file should be the right one and the sWidgetID is found from there. I'll try debugging this and give you some more info later.
I put some debugging code into replayer:
java.io.File file = new java.io.File(sGUIFile);
log.info("sGUIFile exists: "+file.exists());
docGUI = builder.parse(sGUIFile);
log.info("docGUI: "+docGUI);
And the result was:
INFO sGUIFile exists: true
INFO docGUI:
On other words it seems that the name of the GUI file is ok (file exists) but the parsing fails for some reason. Any ideas why?
My GUI.xml file is quite big: 1268 kb and 41693 lines - could the xml parser run out of memory? No exceptions are visible when the parsing is executed.
No, the parser can handle that size. Did you get any exception? Maybe it's another bug
Hi, made some more debugging, maybe the problem is in xpathExpression:
docGUI = builder.parse(sGUIFile);
NodeList nodeList = docGUI.getElementsByTagName("Value");
for(int i=0;i<nodeList.getLength();i++){
if(((String)nodeList.item(i).getTextContent()).equalsIgnoreCase("w227")) {
log.info("nodeList: index "+i+" value is "+nodeList.item(i).getTextContent());
}
}
Result:
INFO nodeList: index 7729 value is w227
And the exception while getting the window name (I added some more debug info):
INFO EventID: e54
INFO sWidgetID: w227
INFO getting window name….
INFO xpathExpression: /GUIStructure/GUI[Container//Property]/Window/Attributes/Property/Value/text()
INFO docGUI:
INFO nodes: 0
ERROR Window ID not found
ERROR GUITAR Exception
edu.umd.cs.guitar.exception.ComponentNotFound