Hi ,
AM facing issue while selecting Item from SwfComboBox. As soon as i perform the select operation, A window Pops up and QTP Just waits to complete the select operation until i Click Cancel Manually. Is there any way that i can handle or End the Select operation immediately after selecting..
For Eg.
While Executing the below statement, The QTP performs the operation the selection but doesnt end the execution of the statement as there is a window which pops up immediately and i have no clue why the statement is still executing after selection. There is no other statement apart from this line of code.
SwfWindow("").SwfComboBox("").Select sTestData
Thanks
Nooruddin
Hello Nooruddin,
One possible way to achieve desired behavior could be if you are using the code:
SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 2" SwfWindow("Form1").SwfButton("ultraButton1").SetFocus
SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 2"
SwfWindow("Form1").SwfButton("ultraButton1").SetFocus
Please take a look at the attached video file desired behavior. Let me know if you have any questions.
Regards
Please Consider this Post and ignore the previous, Sorry for inconvience.
Thanks Georgi
After performing the select operation, the control is not ending or going to the 2nd statement at all because as soon as we select, it brings up swfwindow and QTP just hangs or wait until i close the window manually. There is no way to way to close automatically as Select operation is still not ended
In the normal scenario after selection of an item, the control should either go to the next step or end the run session, but here QTP waits to complete the select operation.
What i can think from the behavior of QTP after performing the selection on infragestic swfcomboBox control is that, It is waiting for some command/operation in select operation, as there is a window which popups immediately after selection that it is blocking/disabling the swfcomboBox to complete selection operation.Hence it may to be going to next step or ending the running session. I think we have look into how infragestic coding is done to hadle the select operation for Infragistics.Win.UltraWinEditors.UltraComboEditor(swftypename)
I have opened a case with support Team and case number is : CAS-90002-KKV1LG
Also I have attached video containing for that case .Please let me know if any more information is needed in this regard. Thanks in advance.
Could you please provide me information about:
1. What is your current version of .Net Framework2. What is the version of your QTP3. Do you have any installed QTP`s patches and which exactly4. What is your OS , x32 or x64 5. What is your current version of NetAdvantage. Do you have any installed service release and which one6. What is your current version of TestAdvantage. Do you have any installed service release and which one7. What is your CLR version which you are using in your test - CLR 2.0 or CLR 4.0 if you are using QTP 11 and TestAdvantage 11.2
Did you have a time to take a look at the attached video file in my previous post. In my test machine everything works properly. I`ll try to reproduce your issue using the same enviroments settings.
Let me know if you have any questions
Hi Georgi,
I Did followed the video you provided and it did not help me as the execution was not moving to the next step at all.
In my caseas explained earlier that as soon as the 1st statement performs the selection, it brings a popup and QTP hangs/waits to complete the 1st statement execution. Am attaching the video in the wma format. please do have a look at it and probably it may give me an idea of an issue am facing.
Below are the answers for your questions
1 : Microsoft .NET framework 4
2 : QTP 11
3 : Patches - QTP_00699, QTP_00709, QTPNET_00051 And QTPNET_00062
4 : Windows 7 64 Bit
5 : May be 10.0 , am not sure( QTP is working fine except for this selection and hanging)
6 : TestAdvantage for Windows Forms (HP) 2010.3
7 : Version 10.3CLR2.0
Please let me know you need any more information
Thanks for attached video file, but I`m confuse from your scenario. There is just one action which select item in the combo control. What should happen after that ? There are not other actions, that`s why the QTP wait for next steps. Somebody should provide next actions.
Please take a look at the code below. You should have someting like that:
SwfWindow("Form1").SwfComboBox("ultraCombo1").SetFocus SwfWindow("Form1").Move 543,38 SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 2" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 3" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 4" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 1" SwfWindow("Form1").SwfButton("ultraButton1").SetFocus SwfWindow("Form1").SwfButton("ultraButton1").Click SwfWindow("Form1").SwfComboBox("ultraCombo1").SetFocus SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 1" SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 2" SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 3" SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 4" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 2" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 3" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 4" SwfWindow("Form1").SwfButton("ultraButton1").SetFocus SwfWindow("Form1").SwfButton("ultraButton1").Click SwfWindow("Form1").SwfComboBox("ultraCombo1").SetFocus SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 1" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 2" SwfWindow("Form1").SwfButton("ultraButton1").SetFocus SwfWindow("Form1").SwfButton("ultraButton1").Click SwfWindow("Form1").SwfComboBox("ultraCombo1").SetFocus SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 2" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 3" SwfWindow("Form1").SwfButton("ultraButton1").SetFocus SwfWindow("Form1").SwfButton("ultraButton1").Click SwfWindow("Form1").SwfComboBox("ultraCombo1").SetFocus SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 3" SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 4" SwfWindow("Form1").SwfButton("ultraButton1").SetFocus SwfWindow("Form1").SwfButton("ultraButton1").Click SwfWindow("Form1").SwfComboBox("ultraCombo1").SetFocus SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 4" SwfWindow("Form1").Close
SwfWindow("Form1").SwfComboBox("ultraCombo1").SetFocus
SwfWindow("Form1").Move 543,38
SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 3"
SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 4"
SwfWindow("Form1").SwfComboBox("ultraComboEditor1").Select "test 1"
SwfWindow("Form1").SwfButton("ultraButton1").Click
SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 1"
SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 2"
SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 3"
SwfWindow("Form1").SwfComboBox("ultraCombo1").Select "test 4"
SwfWindow("Form1").Close
I made new vidoe file for you (this time without break point like in my first video - I used break point in first sample, only to show you the changes ), so please take a look at the video to see next actions after selecting an item in your combo control
Let me know if you have any questions.
Kindly note that after selecting item from the swfcombobox, it brings up altogther a new window. I mean 1st window(Containing Swfcombobox) and 2nd window(containing OK and Cancel Button) which pops up after selection operation.
The 2nd is the active window, where as QTP's control even after selection is at the first statement. you can observe that in the video. Kindly let me know you need any more information.
Please do try on the application where the selection brings you a popup(i.e one window imposed on the other)
Thanks for attached video. Could you please confirm that:
1. Your "Select From Enterprise Dictionary" form is Modal form ( confrim that you are usign ShowDialog() method )2. Could you please give me more details about:- how you call (show) "Select From Enterprise Dictionary" form. Using your combo event - for example: SwfWindow("Form1").SwfComboBox("ultraComboEditor1").FireEvent "ValueChanged", "null" or by another approach.3. Are you using any action to move the focus in the "Select From Enterprise Dictionary" form after this form in active and visible (I ask about this because I didn`t see such kind of actions into your video)
Thanks and RegardsGeorgi