-
1. Re: automating jboss portal admin ui testing usign selenium
leonidmir Jun 15, 2008 11:53 AM (in response to prabhat.jha)What I should download from the JBOSS repository before I can compile and run this test ?
For example, I see all the imports at the beginning, where I can find these classes ?
Regards,
Leonid M. -
2. Re: automating jboss portal admin ui testing usign selenium
prabhat.jha Jun 15, 2008 9:45 PM (in response to prabhat.jha)The test module code is at http://anonsvn.jboss.org/repos/portal/modules/test/trunk so you need to checkout this codebase. Then
1. export PATH=/usr/lib/firefox-1.5.0.12:$PATH (for fedora)
2. mvn -f test/pom.xml install -DJBOSS_4_2_1_HOME=/home/prabhat/jboss-4.2.2.GA
This will run all tests in test module. I hope this helps. -
3. Re: automating jboss portal admin ui testing usign selenium
vrockai Sep 3, 2008 6:09 AM (in response to prabhat.jha)what about jboss portal log? shouldn't it be published, too? during the testing i ussually have some errors in the main log output... something like
12:08:10,706 INFO [DefaultLoadEventListener] Error performing load command org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jboss.portal.identity.db.HibernateRoleImpl#5] at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145) at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103) at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
errors like this are fired quite often -
4. Re: automating jboss portal admin ui testing usign selenium
prabhat.jha Sep 3, 2008 9:47 AM (in response to prabhat.jha)I did not understand your comment.
-
5. Re: automating jboss portal admin ui testing usign selenium
vrockai Sep 3, 2008 10:20 AM (in response to prabhat.jha)when i start jboss portal with run.sh it has an output to the screen. i guess this is what is going into server log files, too. but to be sure i start jboss with
run.sh > /tmp/jboss.log
then when i run my testsuite i check the jboss.log file, and ussualy find few errors like that above in it. i'm asking if this errors should be ignored or archived. -
6. Re: automating jboss portal admin ui testing usign selenium
prabhat.jha Sep 3, 2008 10:32 AM (in response to prabhat.jha)Yes, this is a good idea but there are few issues:
There are cases when you will see error in the log for example if a producer URL is not valid you will see an error in log but on portal UI, code will consume the error and show a user friendly version of the error.
I think what you should do is grep for all ERROR in log and put them in a file and make that part of build artifacts. Then we would have to see if any of them is harmful. In most cases, harmful error will manifest in portal UI as well.
I hope I am explaining it clearly. -
7. Re: automating jboss portal admin ui testing usign selenium
vrockai Sep 5, 2008 10:17 AM (in response to prabhat.jha)issue in jboss portal 2.6.6 GA:
after a creation of file with no content (nothing typed into WYSIWYG Editor) i can click on the "preview" button. it seems that clicking this button has different functionality when the file has content, or is blank. on a blank file "preview" gives us ONLY the list of files in directory (which i guess is not correct functionality) but if the file has any text written in it, the preview opens the "WYSIWYG Editor" where it is able to see the content of file and change it AND the list of files in directory . user who didn't fill the content of their files are now unable to do it with preview button. is it correct? -
8. Re: automating jboss portal admin ui testing usign selenium
prabhat.jha Sep 5, 2008 10:36 AM (in response to prabhat.jha)Viliam, please create a new forum thread for this issue as it's not related to automation in hudson.