writing common functions.
I am a starter with silk. I started writing the test cases for web testing but to avoid the code duplication I want to write some common functions and call them in my test cases.
Please tell me where and how I casn start for this.
for ex: If I want to login . I can write a test case for login() and use this in all the other test cases where login() is required.
Please reply me.
Re: writing common functions.
Since you know that you have a Silk related question, you might try to ask this question in there.
But in a general sense, any common functions that you want to write, should be generic enough that using them in a different situation will not break the function call. No hard references inside, no static URLs inside, etc. The more generic you write a common fucntion, the more places you will be able to use it without problems.