private void ReadScript(String language)
        {
            var line    = "";
            var builder = new StringBuilder();

            while (true)
            {
                line = Reader.ReadLine();
                if (line == "endscript")
                {
                    break;
                }
                builder.AppendLine(line);
            }

            if (ScriptReceived != null)
            {
                try
                {
                    var script = ScriptFactory.Create(language, builder.ToString());
                    ScriptReceived(this, new ScriptEventArgs(this, script));
                }
                catch (Exception ex)
                {
                    SendMessage("Compile Error: " + ex.Message);
                }
            }
        }
Пример #2
0
 public void setup()
 {
     _file   = new FileInfo(@"~\..\..\..\TestFiles\1_Extract\Extract SalesData.qvw");
     _script = ScriptFactory.Create(_file);
 }
Пример #3
0
 public static void CreateNaukriBehaviourTemplate()
 {
     ScriptFactory.Create("NaukriBehaviour.cs", "NewBehaviourScript.cs");
 }
Пример #4
0
 public void setup()
 {
     QlikViewApp.App = new mocked_qlikview(Script);
     _script         = ScriptFactory.Create(new FileInfo("c:\\notapath"));
 }