user code moduel -- Test exceution > how to prompt to enter "user id" then send id as parameter to execute an individual test case
Thank you ,
Beginner
How to Prompt to enter id then execute the testcase
Re: How to Prompt to enter id then execute the testcase
You can create your own form and get the data that the user puts into a textbox...
You can read from the console...
You can read from the console...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: How to Prompt to enter id then execute the testcase
Thank you Ciege, this code works for me -
Console.BackgroundColor = ConsoleColor.Green;
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Type Run Id:");
string input = Console.ReadLine(); // Read string from console
// Reset the color.
Console.ResetColor();
runControlTable.ReadRnControlTable(input);
Console.BackgroundColor = ConsoleColor.Green;
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Type Run Id:");
string input = Console.ReadLine(); // Read string from console
// Reset the color.
Console.ResetColor();
runControlTable.ReadRnControlTable(input);
Tipu