SilkTest Question:
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.?
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.
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.