Click here to Skip to main content
15,902,846 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm trying to use fitnesse to test my application. The problem that i'm facing is i have a particular string field in my fixture.When i give it a default value in the fixture the fixture runs and gives me the desired output but when give i give the value to the string through my test table it doesn't work. I'm trying to communicate with the server and get some response from the Server.

C#
public class Test1
{
    string BassCommand;
        //="abc\r\n";
    SocketClient SClientObj = new SocketClient();
    String IpAdd;
    public String Test()
    {
        bool temp = SClientObj.IsValidFormat(IpAdd);
        SClientObj.ConnectServer();
        SClientObj.SendMessage(BassCommand);
        System.Threading.Thread.Sleep(5000);
        //SClientObj.WaitForData();
        return SClientObj.FinalData;
    }
}


I'm facing issue with the String BassCommand.When i give it through my test table the server pops up an error saying "Unable to access unknown file".but if i uncomment the abc\r\n part it works properly.

Thanks in advance!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900