SilkTest Question:

Download Job Interview Questions and Answers PDF

An application developed using Dotnet. and 1000 cases recorded for this application.
All was working fine until...one fine day...
Some one changed the namespaces which are used by this application. The scripts have started failing because it is as good as having a new window or a panel in the application.
Obviously, Silk does not recongnise this window.
Now is there any way to tackle this problem other than recording the windows all over again.?

SilkTest Interview Question
SilkTest Interview Question

Answer:

Answer1:
First capture few windows and compare the new window declarations with old ones.
And try to find what are the changes in tags (Names) and any layers between windows.
Accordingly you just need to modify the few window identifies and need to include additional windows if any. ( you need not to touch your 1000 testcases ). Long back I had same problem with this method I solved.

Answer2:
If you are very sure that only the namespace name change has impact on the scripts then I can suggest you one approach.
I am assuming the following, Suppose the previous namespace name is "x" & now it is "y". And all your scripts are in a single folder say "F"
You need to write a script in any language C# or our own 4T language, that need to search all through the folder "F" and replace all the "X" with "Y" in each and every file.
This is the general way I go ahead when need to update one object in n number of files.

Download SilkTest Interview Questions And Answers PDF

Previous QuestionNext Question
How to get the integer value from a string ?I have a GUI similar to Find Dialogue Box in Notepad..... Here the Check Box Match Case is recognized as Push Button and I want to check whether the check box has been checked or not..... I can not map a standard class PushButton to another class "CheckBox"....In the Window declaration I manually changed the PushButton class to CheckBox class but not working...
Please suggest any solution?