Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stingray cell has 4 subparts...how do I test them?
#1
Not Solved
Hey Helpful People,

I have a nasty Stingray problem.

I just want to set the date value in a cell. A complicated cell, see screenshot.

The cell has 4 areas in it, the date value, a small up arrow (increment date), a small down arrow (decrement) and a large down arrow (show calendar).

No matter what I do in QTP, it selects the Calendar, which flashes by and disappears. The current date appears in the field, but as soon as I leave the cell, the cell goes blank again.

For example, I do this:

Code:
Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SelectCell "#1", "#8"

Result: Calendar appears, disappears, today's date goes into field.
As soon as I do: .SelectCell "#2","#8", the value in cell #1 goes away.

If I do this:

Code:
Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SetCellDat a "#1", "#8", "12122012"

Result: Calendar appears, disappears, today's date goes into field (NOT the date I set! Because QTP only touches the Calendar arrow, not the date area).
As soon as I do: .SelectCell "#2","8", the value goes away.

If I do this:
Code:
Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").ActivateCel l "#1", "#8"
' -> Today's date appears
Code:
Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SelectCell "#1", "#8", "01022013"
'->date changes to strange thing like '20/'20/2013
Code:
Dialog("Certification for: 012").WinTable("StingrayGrid:Surveys").SelectCell "#2", "#8"
'->Cell #1 goes blank

I've tried .click, .dblclick, .Type "12122012" all have similar results.

This is QTP 11, the Stingray module is loaded and configured.

Any ideas?

Is there a way to select 4 different areas inside one cell? (right now it only selects the big down arrow, no matter what I do.)

Thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)