B
Bharani Ranganath
Guest
Hi Divya and Mike, Thanks for your replies on the Assert statement. Let me explain what i am trying to do. Basically, i am trying to write a test case for the Create,Update and Delete operations as a start. I need to create a company, modify the company and finally the delete the company. For the creation, we have validation methods that check Name, shortname, country ,state likewise. So in my test case, i have separate test cases for check name, short name ...... which will have an Assert statement to display the status. So in all, i have test cases that check for valid name, in valid name, valid shortname, invalid short name likewise. The same test has to again run when i modify a record. So i want to include all the methods - checkname ,checkshortname ... in a separate class and in the main test case , the first test would be to instantiate the object, call the method which checks the fields. In the checkfield, i have the Assert statement, but unfortunately only one Assert gets printed . My intention is to make use of the same methods in the test case . Since this failed, i am trying to create the method names in a temp table, and have two test cases which loops through the for each and calls the methodname. I am stuck again - Is there a way i can call the method name of a class using a value from the variable. ?
Continue reading...
Continue reading...