Is there a official way to migrate tests from Silverlight applications to a equal build WPF application? (Presuming the UI items are located on the same place with the same name).
Are there any dependencies or snares, which would prevent me from migrating the tstest files to WPF by hand?
Has anybody know-how in this type of migration?
4 Answers, 1 is accepted
Thank you for contacting us with your question.
I am sorry to tell you that the Web test, used for Silverlight applications, and the WPF test types are quite different. Their structure and backend logic will not allow you to convert one to the other.
What you need to do is, create new WPF tests and record the necessary steps for your test scenarios. I understand that might take you some time to do, but it is also an opportunity to redesign and organize some of the tests. For example, you can use the Test as Step feature to reuse different tests like login, logout, etc.
Please do not hesitate to contact us again, if you have follow up questions, or you need any help.
thank you for your quick answer.
We have SL and to WPF migrated equal solutions. I compared the tstest files, testing the same, one in SL and one in WPF with each other. My impression was, that when I build a migration tool. which would replace the technical parts in the SL tstest files, the solution would be able to run on the WPF application.
I attached a file, showing some "mayor" differences between the tstest files, which are primary WPF vs SL configs.
Do I oversee something?
You are correct that both tests have similar JSON file structure, but use different descriptors to execute the test steps for each application type. That will turn out to be an issue and while it is, in theory, possible to make changes manually, it is not recommended and supported by Test Studio. You might corrupt the file in the process by accident or miss a small details that will cause a failure and unexpected behavior.
I am interested to know what is the volume of tests and recorded elements that you have in your projects.
Thank you for your understanding.