I have dowonloaded a trial version of QA test tool and I am having difficulties with recording in Sharepoint site. For example, I am trying to add a new site collection administrator to site collection. In order to that you need to type login name into SharePoint people editor control then you need to validate the user with validate button in the page then by clicking OK button completes the process. WebUI test tool seems like recording everything and when you run the test, it successfully completes but it does not insert the user into people editor control. Is there any workaround? How can I modify that step in order to insert user to people editor? Thanks.
7 Answers, 1 is accepted
0
Hello Riza Ture,
Thank you for taking the time to evaluate WebUI Test Studio. I'm not sure what you mean by "insert the user into people editor section". We know very very little about SharePoint. Do you mean the tool is not setting the text of some input field? If this is the problem you can try setting SimulateRealTyping to True as shown in the attached screenshot. Many web applications require this due to JavaScript attached to the input control.
Kind regards,
Cody
the Telerik team
Thank you for taking the time to evaluate WebUI Test Studio. I'm not sure what you mean by "insert the user into people editor section". We know very very little about SharePoint. Do you mean the tool is not setting the text of some input field? If this is the problem you can try setting SimulateRealTyping to True as shown in the attached screenshot. Many web applications require this due to JavaScript attached to the input control.
Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Benjamin
Top achievements
Rank 1
answered on 24 Sep 2010, 10:12 AM
Hi.
first off. what version of sharepoint are you using?
and in general for sharepoint then it uses variabel field names so you need to change the field lookup method after you have recorded your test so that you can reproduce the test in the future.
the variabel fields usually look like this in sharepoint 2010.
ctl00_m_g_cc1b959d_d69b_411f_9399_23169bddc643_GC
where you whant to alter the field lookup to say
contains ctl00_m_g_ and contains _GC
the _GC can be either static or variabel depending on how your dev's make the webparts.
if it is variabel then it stays the same as long as the field does not alter position with in the webpart.
eg. dev adds a new field to the webpart.
first off. what version of sharepoint are you using?
and in general for sharepoint then it uses variabel field names so you need to change the field lookup method after you have recorded your test so that you can reproduce the test in the future.
the variabel fields usually look like this in sharepoint 2010.
ctl00_m_g_cc1b959d_d69b_411f_9399_23169bddc643_GC
where you whant to alter the field lookup to say
contains ctl00_m_g_ and contains _GC
the _GC can be either static or variabel depending on how your dev's make the webparts.
if it is variabel then it stays the same as long as the field does not alter position with in the webpart.
eg. dev adds a new field to the webpart.
0

RT
Top achievements
Rank 1
answered on 24 Sep 2010, 02:45 PM
My problem is about recording, I have attached the screen shots about the issue. When I enter tester14 and then when I click ok button I don't see tester14 anywhere in the recorded part. There are only two recording elements PlaceHolderMainUserPickerUpLevelDivDiv (which is htm div) and PlaceHolderMainRptControlsBtnOKButton (which represents the ok button). Which element should I modify and how? Screen shots-first is before clicking the ok button and second is after clicking the ok button. Thanks.
0

Benjamin
Top achievements
Rank 1
answered on 24 Sep 2010, 03:18 PM
hi.
i'm off work now but i will see if i cant make time on monday to se if i can find a way to do it.
but can you tell me if your sharepoint 2010
is a clean install or an upgrade from 2007
just so i can use the test setup that is closest to your install.
we have found that there are a small difference weather it is an upgrade or clean install
and if update then weather you use the 2007 design or the 2010 design.
btw. i'm in no way affiliated with telerik.
Regards
Benjamin
i'm off work now but i will see if i cant make time on monday to se if i can find a way to do it.
but can you tell me if your sharepoint 2010
is a clean install or an upgrade from 2007
just so i can use the test setup that is closest to your install.
we have found that there are a small difference weather it is an upgrade or clean install
and if update then weather you use the 2007 design or the 2010 design.
btw. i'm in no way affiliated with telerik.
Regards
Benjamin
0

RT
Top achievements
Rank 1
answered on 24 Sep 2010, 03:24 PM
I am using SharePoint 2007-2010.
0

Benjamin
Top achievements
Rank 1
answered on 27 Sep 2010, 09:16 AM
Hi Riza
the issue as i can se it is that sharepoint does some funky manipulation somewhere and WebUI catches the input field as a div.
on investigatign the page dom on both platforms then it looks similar, almost like a direct copy paste for the input field.
the containing <td> has a div and a textarea in both sp2007 and sp2010.
i proberly cant find a quick solution from my end so Cody could you please investigate if this is a limitation or a bug with WebUI?
i'd personally like to know if there is a work arround some how.
Regards
Benjamin
the issue as i can se it is that sharepoint does some funky manipulation somewhere and WebUI catches the input field as a div.
on investigatign the page dom on both platforms then it looks similar, almost like a direct copy paste for the input field.
the containing <td> has a div and a textarea in both sp2007 and sp2010.
i proberly cant find a quick solution from my end so Cody could you please investigate if this is a limitation or a bug with WebUI?
i'd personally like to know if there is a work arround some how.
Regards
Benjamin
0
Hi Riza Ture,
Replace "Text to be typed" with your "tester14" and 50 represents the delay in between each keystroke (in milliseconds). Kind regards,
Cody
Looking at your screen shots it appears the problem is that typing of "tester14" into the Users/Group input field is not getting recorded at all. Is that correct? If so that would explain why it is failing during playback... i.e. the test isn't even attempting to fill in this field as required by your input form.
To investigate this recording problem I'll need direct access to the application so I can debug it.
However as a workaround we can use a coded step. To simulate keyboard typing you can use code like this:
Manager.Desktop.KeyBoard.TypeText(
"Text to be typed"
, 50);
Replace "Text to be typed" with your "tester14" and 50 represents the delay in between each keystroke (in milliseconds). Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items