Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4219 (closed)

Opened 9 years ago

Closed 9 years ago

selenium tests for metadata

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-Beta4.3
Component: Web Version: n.a.
Keywords: n.a. Cc: cneves, atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2011-02-10 (5)

Description

Webclient selenium test to check metadata for a particular image.


  • Aim to test for correct metadata in a way that is not too sensitive to changes in the UI layout - this will change as clients become unified

Change History (4)

comment:1 Changed 9 years ago by wmoore

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Will Moore <will@…>

(In [59ae6e278dcb77e05e33198c251eee313782d2e7/ome.git] on branch develop) First attempt at webclient metadata selenium tests. See #4219

comment:3 Changed 9 years ago by wmoore

Problems so far:

  • Don't know how to import a file as part of the test and retrieve it's ID. Looked at helper function in integration tests but not sure how this works in Selenium. For now, just hard coding an existing image ID.
  • Identifying elements on a page with Selenium either uses very 'brittle' references E.g.
    self.assertEqual("DAPI", sel.get_value("//div[@id='metadata_tab']/div[4]/table/tbody/tr[1]/td[2]/input"))
    
  • Alternative is to check that text exists somewhere on the page.
    self.failUnless(sel.is_text_present("DAPI"))
    

But this doesn't work for values in input fields (not sure how to test this).

comment:4 Changed 9 years ago by wmoore

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.79730 sec.)

We're Hiring!