Enovia Tree Menu

218 views
Skip to first unread message

Abraham Itty

unread,
Nov 10, 2011, 4:29:16 PM11/10/11
to mercu...@googlegroups.com
Does anybody has used QTP to automate Dassault Enovia V6 application.

I need help in identifying the Add-ins required for Enovia V6. It is a web based application but with Addin for Web and ActiveX, I not able to identify Menutree objects.

Please the attached PDF file. I am not able to record the sub menu.

Enovia Tree Menu.pdf

Rupa Schomaker

unread,
Nov 10, 2011, 10:25:42 PM11/10/11
to mercu...@googlegroups.com
So enable web, and activex. Then use object spy to see what things are recognized as. Strait windows API?  There must be a browser container and a page. Then comes the activex container and contained objects.
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to Mercu...@googlegroups.com
> To unsubscribe from this group, send email to
> MercuryQTP+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en

--
-Rupa

lokesh vinu

unread,
Nov 11, 2011, 12:21:51 AM11/11/11
to mercu...@googlegroups.com
Hi Abraham,

I have worked in Enovia application and faced the same issue in the
tree structure..
For this you need to use child object method and use for loop inside it...

Let me know if you still need any help

Thanks!
Lokesh

Abraham Itty

unread,
Nov 11, 2011, 5:41:49 PM11/11/11
to mercu...@googlegroups.com
So I do not need any more addins apart from - ActiveX and Web.

Can you please send me the script you have used to record the said menu. It will be a great help for me.

I have attached the screenshot of the menu which i am trying to record.
Enovia-Menu-Recording.pdf

Abraham Itty

unread,
Nov 16, 2011, 3:10:42 PM11/16/11
to mercu...@googlegroups.com
I used OR to add all the object in the higher hierarchy to the Browser level and did able to add the sub menu object, but still I am not able to click the object on running the script.

Browser("ENOVIA").Page("ENOVIA").WebElement("3dsButton_3").Click
Browser("ENOVIA").Page("ENOVIA").WebElement("Engineering").Click
Browser("ENOVIA").Page("ENOVIA").WebElement("Part").Click
Browser("ENOVIA").Page("ENOVIA").WebElement("Create Part...").Click

Am I missing something here....

On Thu, Nov 10, 2011 at 11:21 PM, lokesh vinu <lokes...@gmail.com> wrote:
Enovia-Menu-Recording.pdf
Object Identified.docx

Abraham Itty

unread,
Nov 16, 2011, 3:18:25 PM11/16/11
to mercu...@googlegroups.com
I want to add to my previous email that the run was completed sucessfully without any error but it is not opening the window after the last click i.e. after
Browser("ENOVIA").Page("ENOVIA").WebElement("Create Part...").Click

Enovia-Menu-Recording.pdf

Abraham Itty

unread,
Nov 17, 2011, 4:54:59 PM11/17/11
to mercu...@googlegroups.com
I guess no one want to help me. I have not received any response about why the webelement is not responding.

Kishor Kumar

unread,
Nov 17, 2011, 10:25:07 PM11/17/11
to mercu...@googlegroups.com
Hi ,
Try below code, & i observed in your OR, that we have enabled Smart Identification , make it false, make sure that objects are highlighted , after disabling SI.

t
Browser("ENOVIA").Page("ENOVIA").WebElement("3dsButton_3").Click

Browser("ENOVIA").Page("ENOVIA").WebElement("Engineering").Highlight
Browser("ENOVIA").Page("ENOVIA").WebElement("Engineering").Click

Browser("ENOVIA").Page("ENOVIA").WebElement("Part").Click
Browser("ENOVIA").Page("ENOVIA").WebElement("Part").Click

Browser("ENOVIA").Page("ENOVIA").WebElement("Create Part...").Highlight
Browser("ENOVIA").Page("ENOVIA").WebElement("Create Part...").Click

Abraham Itty

unread,
Nov 18, 2011, 4:41:13 PM11/18/11
to mercu...@googlegroups.com
Thanks. It did not worked for me.

Does any have any idea why I am not able to identify the object during runtime.

Abraham Itty

unread,
Nov 20, 2011, 7:54:20 PM11/20/11
to mercu...@googlegroups.com
I tried everything, but I still cannot click submenu and open the window which should open on selecting the submenu.
I have attached the screen shot.
In this scenario :
Action
Engineering
Part
Create Part -- should open a window to create part.

The test runs successfully but, the create part window does not open.
Screenshot_of_my_Script.pdf

siva prasad

unread,
Nov 20, 2011, 11:12:44 PM11/20/11
to mercu...@googlegroups.com

Function menuoption(StrParameters)
 Dim i,j, Inputstring,obj
 Inputstring=split(StrParameters,":")
 Set obj=createobject("wscript.shell") 
 
 If  Ubound( Inputstring)>=0Then
  For i=1 to  Inputstring(0)
              Wait(1)
               obj.SendKeys "{DOWN}"
  Next
     Else
                Reporter.ReportEvent micFail,"Menu Option","We are not able to select Menu Options"
  Exit function
   End if
 
 If  ubound( Inputstring)=1Then
   For j=1 to  Inputstring(1)
              wait(1)
   If j=1 Then
           obj.SendKeys "{RIGHT}"
   Elseif j>1 Then
            obj.SendKeys "{DOWN}"
   End If
   Next
      Else
                  Reporter.ReportEvent micFail,"Menu Option","We are not able to select Menu Options"
  Exit Function
   End If
                    wait(2)
                   obj.SendKeys "{ENTER}"
                   Reporter.ReportEvent micPass,"Menu Option","We are  able to select Menu Options"
End Function

siva prasad

unread,
Nov 20, 2011, 11:18:22 PM11/20/11
to mercu...@googlegroups.com
Hi
 
Try to use this below function. syntax to call this function is call menuoption(6:14)
This will click on Engneering and then on Part.

uma mahesh

unread,
Nov 22, 2011, 4:46:44 AM11/22/11
to mercu...@googlegroups.com
First you need to know whether Java was used for developing this application.

Abraham Itty

unread,
Nov 22, 2011, 4:42:15 PM11/22/11
to mercu...@googlegroups.com
I do not know how to identify whether the Menu Tree is created by Java. The application is web based.

On Tue, Nov 22, 2011 at 3:46 AM, uma mahesh <umamah...@gmail.com> wrote:
First you need to know whether Java was used for developing this application.

Abraham Itty

unread,
Nov 22, 2011, 4:49:43 PM11/22/11
to mercu...@googlegroups.com
I have attached the source code of the Web page. For you information I have used Java Addin, still it does not execute submenu menu.... i.e. on click the result is done but it does not open the expected form.
emxNavigatorDefaultContentPage[1].txt
Reply all
Reply to author
Forward
0 new messages