Package com.qspin.qtaste.testsuite.impl

Examples of com.qspin.qtaste.testsuite.impl.JythonTestScript


                interactiveQTasteFile.println("result = interactiveCommand()");
                interactiveQTasteFile.close();
                ArrayList<LinkedHashMap<String, String>> l = new ArrayList<LinkedHashMap<String, String>>();
                l.add(data.getDataHash());
                // checks must be added to ask specific data
                JythonTestScript ts = new JythonTestScript(l, requirements, iQTasteFile, iQTasteDirectory, null);
                ts.setName(tcId);
                ts.execute(false);
                TestResult testResult = ts.getTestResults().get(0);
                testResult.setName(tcId);
                testResult.setComment("");
                Bindings globalContext = JythonTestScript.getEngine().getBindings(ScriptContext.ENGINE_SCOPE);
                if (globalContext.containsKey("result")) {
                    Object returnObject = globalContext.get("result");
                    String returnValue = "None";
                    if (returnObject != null) {
                        returnValue = returnObject.toString();
                    }
                    if (!ts.getTestDataSet().getData().isEmpty()) {
                        testResult.setReturnValue(returnValue);
                    }
                }
            } catch (IOException ex) {
                //
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.testsuite.impl.JythonTestScript

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.