Exemplo n.º 1
0
        public void second_positive()
        {
            XmlRpcStruct result = _secondclient.run_keyword("subtract", new object[] { "3", "1" });

            Assert.IsTrue(result["return"].GetType().Equals(typeof(System.Int32)));
            Assert.IsTrue((System.Int32)result["return"] == 2);
        }
Exemplo n.º 2
0
        public void first_positive()
        {
            XmlRpcStruct result = _firstclient.run_keyword("add", new object[] { "1", "2" });

            Assert.IsTrue(result["return"].GetType().Equals(typeof(System.Int32)));
            Assert.IsTrue((System.Int32)result["return"] == 3);
        }
Exemplo n.º 3
0
        public void NormalFailure()
        {
            XmlRpcStruct result = _client.run_keyword("NormalFail", new object[0]);

            //check continuable or fatal are not set
            Assert.IsFalse(result.ContainsKey("fatal"));
            Assert.IsFalse(result.ContainsKey("continuable"));
        }
Exemplo n.º 4
0
        public void cmd_exists()
        {
            XmlRpcStruct result = _client.run_keyword("exists", new object[1] {
                "C:\\Windows\\System32\\cmd.exe"
            });

            Assert.IsTrue((Boolean)result["return"]);
        }
 public void stop_remote_server_keyword()
 {
     _stoprequested = false;
     _client.run_keyword("STOP REMOTE SERVER", new object[0]);
     //wait upto 5 secs for it to be processed
     System.Threading.Thread.Sleep(6000);
     Assert.IsTrue(_stoprequested);
 }
Exemplo n.º 6
0
        public void call_static_method()
        {
            XmlRpcStruct result = _client.run_keyword("multiplier", new object[2] {
                "1", "2"
            });

            Assert.IsTrue(result["status"].ToString() == "PASS");
            Assert.IsTrue((int)result["return"] == 2);
        }
Exemplo n.º 7
0
 public void nullargs()
 {
     _client.run_keyword("exec noerror", null);
 }