c# - CodedUI Test - cannot re-use test across environments in sharepoint -
I am using CDEI testing for apps developed in SharePoint. The problem is that it will not work in different environments. Therefore, I have to record a test for each environment which is due to cumbersome and error.
With a small investigation, it has been found that the client ID created for the server is different on each environment in a webpad (even if everything in the page is same - masterpage, page layout, webparets) .
To solve this problem (approximate) I thought of editing SearchPropertyExpressions to use the last segment of client ID with the "id" operator. It works well if you are manually designers CS Manually edit the generated code in
My question is, is there any easy and elegant way to automate it?
So far: I have the Intexter Setter Communication Expression Clocking class with my function. I use this function to check the values that are set with the "ctl" string and change it and replace it with the last segment of string (formerly "ctl0123_textbox1" with "textbox1") and end It includes an operator, it works great. But it is indiscriminately to filter the input - it does not pay attention to any filer or search, and it does not even know which type of control it is related to. This method really is.
We just face the same issue (20 customized versions of our app should support) The general solution came to us:
1) Intuitive UI Interaction with Business Arguments (We Have U Custom fabric for eTest control, which deserilizes them with XML file)
2) It is necessary for each client to act as a logic for tweak UI interaction and it is the same way that the developers have the same application 3) Therefore, we have the same logic for each branch of application ('different environment') but different UI layers
4) We now have to XML UI Notation File on the Test Prepare and be happy to use on the RAN
This solution is difficult, some complex codes are required but we need flexibility and, well, we do not record our investigation We make them from scratch, so the code lot cleaner is more satisfying. Hope this helps, if you need, I can provide more detailed information.
Comments
Post a Comment