Opening XML file in different XML editors

28 views
Skip to first unread message

Ganesh Kumbhar

unread,
Aug 5, 2015, 10:35:12 PM8/5/15
to robotframework-eclipselibrary-users
Hello EveryOne,

    Currently, I am testing eclipse editors features that we developed here to open different kind of XML files in different formats.
So, I am trying to open xml file by clicking on file in Project Explorer View, but it's giving some java.lang.OutOfMemoryError kind of exception.

Error is as below : 
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor"

    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "MainThread"
    
BUT, Text files are opening even if they have same content as xml files.
It's not opening simplest xml file also.

Robot Code I have written is as below :

    Set Focus on Project Explorer View     ## --)  Function I wrote to focus on Project Explorer E View, It opens from Menu  Windows -> Show View -> Project Explorer.
    Sleep  1s
    Find Tree  
    Find Tree TreeItem  ProjectNm
    Select Tree Item
    Expand Tree Item    
    Select Tree Item
    Sleep  2s
    Find Tree Item Node  xmlFile.xml
    Select Tree Item
    Sleep  1s                                                                     
    Double Click Tree Item            >>>  In this way also I tried, but same error  --->))   #Find Context Menu  Open With
                                                                                                                                      #Find Sub Menu  XML Editor
                                                                                                                                      #Click Menu
    Sleep  10s                        
    Find Active Eclipse Editor
    ${Editor_Active}  Is Editor Active
    ${Critical_report_xml}  Get Eclipse Editor Title
    Log To Console  ${Critical_report_xml}

   
   Kindly, help me to resolve this. 
     
    
Thanks & Regards, 
Ganesh.

Laurent Carbonnaux

unread,
Aug 6, 2015, 10:39:36 AM8/6/15
to robotframework-ec...@googlegroups.com
Hi Ganesh,

Please check your launcher parameters (in eclipsebot.bat if you use it) :

existing is "java -Xms256m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=256M"

You can adjust the JVM parameters, maybe according to files weigth

Let me know


--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "robotframework-eclipselibrary-users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse robotframework-eclipsel...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Ganesh Kumbhar

unread,
Aug 7, 2015, 4:14:13 AM8/7/15
to robotframework-ec...@googlegroups.com
Hi Laurent,

   Yes, Actually I didn't give anything there in batch file so might be it takes these values by-default, but my eclipse.ini file has more than enough memory
  i.e. -Xms96m -Xmx4096m -XX:MaxPermSize=320M.

So doesn't it take these values from eclipse.ini if we are not passing it into our batch file. My batch file is as below :

"jre7u51\bin\java.exe" -Xmx2048m -XX:MaxPermSize=256M -Xbootclasspath/a:lib\eclipselibrary-0.21-with-dependencies-swt.jar -Xbootclasspath/a:lib\org.eclipse.jface_3.5.2.M20100120-0800.jar -jar lib\robotframework-2.8.6.jar -d testResult --debugfile debugFile.txt --timestampoutputs --logtitle CT_ChangeReportTests_Log --reporttitle CT_ChangeReportTests_Report testcases\CT_ChangeReport_TestSuite.txt %*

So in above batch, If i didn't add above parameters(In bold), then it will give this kind of error even if eclipse.ini file is having enough memory allocation.
Just small doubt in my mind :) .

And thanks for reply, Its working now properly as expected :) .

Regards, 
Ganesh.


   

--
Vous recevez ce message, car vous êtes abonné à un sujet dans le groupe Google Groupes "robotframework-eclipselibrary-users".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/robotframework-eclipselibrary-users/zp8LD9pwLHY/unsubscribe.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse robotframework-eclipsel...@googlegroups.com.

Laurent Carbonnaux

unread,
Aug 7, 2015, 4:49:43 AM8/7/15
to robotframework-ec...@googlegroups.com
Hi Ganesh,

elcipse.inin is used when eclipse is started with eclipse.exe, not with robotframework.
So this is a good way to change bacth file with eclipse.ini same parameters

Regards,
Laurent.

Ganesh Kumbhar

unread,
Aug 7, 2015, 7:11:11 AM8/7/15
to robotframework-ec...@googlegroups.com
Ohokayy,
 Got it now, thanks.


Regards, 
Ganesh

Ganesh Kumbhar

unread,
Aug 11, 2015, 5:34:00 AM8/11/15
to robotframework-ec...@googlegroups.com
Hello Laurent,

    Below is my xml editor GUI Snap, which I am testing through Eclipse Library of RF. It has two sections -> Viewer(Left-Side) & Editor(Right-Side).

Here I am not able to find text fields(other widgets also), from editor section(selected part of editor section)

And I guess I have to use keywords with Group option there but I am not getting how to use & what exactly group is !!

Can you please share some scenarios that uses keywords with Group so that I would get some idea to understand it's use ??



     Inline image 1


Thanks & Regards,
Ganesh

Laurent Carbonnaux

unread,
Aug 12, 2015, 8:45:38 AM8/12/15
to robotframework-ec...@googlegroups.com
Hi Ganesh,

I'm not really aware of this kind of SWT widgets, sorry.
You may ask directly on SWTBot mailing list maybe.

Laurent.

Ganesh Kumbhar

unread,
Aug 12, 2015, 10:20:09 PM8/12/15
to robotframework-ec...@googlegroups.com
Ok Laurent, No problem and Thanks you. ☺

I am trying it by trial & error method and become successful up to some extent.


Regards,
Ganesh

Reply all
Reply to author
Forward
0 new messages