squish help

Discussion about recent product features & solutions!
10 posts • Page 1 of 1
MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

squish help

Post by MrKintaro »

There is someone that can help me with squish test for wincc oa?

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: squish help

Post by Gertjan van Schijndel »

Perhaps elaborating about your squish issue, might result in more useful information.

MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

Re: squish help

Post by MrKintaro »

hi,

I just started and I am looking for someone who want to share some experience and spend some hours to discuss which it is the best way how to use it.

It seems that squish is a good solution and maybe someone has already worked with it and WinCC OA.

I have just done 2 stupid test:

1. check if WinCC OA is running
2. check if a small pannel, where I am pressing the button is setting the background yellow

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: squish help

Post by adaneau »

We are using squish for our BDD tests with WinCC OA. The latest implementation of ETM allowed us to cover most of the shapes.

MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

Re: squish help

Post by MrKintaro »

I found out that squish is not capable to detect the rectangle,am I right?

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: squish help

Post by adaneau »

Hi,

That should work with P007:

29265: Now automated Squish tests are able to query the following
shape properties:
QString foreCol, QString backCol, bool visible, bool enabled,
bool selected


Br
A. Daneau

MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

Re: squish help

Post by MrKintaro »

Hi,

I updated but no way.

Please have a look to the picture.

Image

The selection of the element is recognizing only the butto and the Rubber Band (Qframe).

But not the rectangle.
Attachments
TestSquish.PNG

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: squish help

Post by adaneau »

Hi,

Yes all shapes which are not widget (rectangle, primitive text, circle, polygon, ellipse, ...) cannot be accessed using squish picker.

You need to use script for that. Ex:

function main()
{
ctx = startApplication(PVSSII_PATH + "bin/WCCOAui -currentproj -p yourpanel.pnl -lang de_AT.utf8 -user root:");

var panel = waitForObject(":etmPanelArea_PanelQT");
logProperties(panel.getShape("PRIMITIVE_TEXT1"));
logProperties(panel.getShape("PRIMITIVE_TEXT2"));
}

function logProperties(obj)
{
var text = obj.property("text").toString();
test.log(text);

var textList = obj.property("textList").toStringList()
for (var i=0; i

MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

Re: squish help

Post by MrKintaro »

Is there any documentation to understand for example what is ":etmPanelArea_PanelQT"?

MrKintaro
Posts:53
Joined: Fri Aug 16, 2013 6:56 pm

Re: squish help

Post by MrKintaro »

Hi,

I worked a little bit on Rectangle shape.

It works!!!

I wondering if there is any docu or if we can share some experience about squish and WOA in order to understand what is possible and what is not.

I am open for a telko if you want.

I am working for siemens.

10 posts • Page 1 of 1