GreenPepper Seeds of GreenPepper
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: clapointe  XML
Profile for clapointe -> Messages posted by clapointe [116] Go to Page: 1, 2, 3, 4, 5, 6, 7, 8 Next 
Author Message
I think I found the problem, well the workaround at least.

That thing was working for me but my "setup MySetup" table was embedded in a page with some other stuff. So I went back to this really simple example where "setup MySetup" was the only thing in the page and guess what, I finally reproduce the problem. That is a good starting point for finding a bug

It seems that if the setup is alone in the page, then the interpretation of the table is not triggered. This is a bug that I will correct in the next release.

Workaround

But for now, just add another table after your setup and it will be interpreted. Look at the attached screen snapshot

Simplest way is to add a comment interpreter

Code:
 |setup| MySetup|
 |x | y | z |
 | 1 | 2 | 3 |
 
 | comment |
 


I hope this will get you forward.
Cheers
Christian
Hi Chris

I am looking at the difference from your config and mine.

What does your PHDSUD runner look like? I am using the default java core runner and I added the php extension jar to my system under test classpaths.

here is a print screen of my config
> If I am understanding you, I could just have a variable in my Fixture - rowNum - and then never use it.

Exactly

You would need a setRowNum method or a field named rowNum, otherwise you will have an exception.

No, the EnterRow function is suposed to be void. But now that I think of it, returning a boolean would make a lot of sense. I'll put that in the backlog.

This should be straightforward. If you make a mistake in the name of one of the column. Do you have an exception (painted yellow) or nothing. I am trying to figure out if you fixture is being executed at all.

Christian
I could not think of an easy to do that other than to just give a name to that column and process it as part of your fixture

Code:
 || Rule For | Claim ||
 | Row Num  | Claim Number | Service Code? | Claim Status? | Paid Amount? |
 | 1 | 100042789 | 83861 | PAY | $x.xx |
 | 2 | 100042788 | 83861 | DENY | $0.00 |
 


You then add a setRowNum method or a rowNum field and you do nothing with it. You could even hide it in a subclass of your fixture

ie: ClaimFixture extends NumberedRowFixture

Do this works for you?

Christian
As today (april 20, 2012) only

  • greenpepper-open (java and dotnet)
  • confluence-plugin
  • NEW confluence4-plugin
  • maven-plugin
  • maven-runner
  • remote-agent

    are available in version 3.0. The other plugins/extensiosn will be available soon, but since people were asking for the confluence 4 version, we got it out as soon as available.

    enjoy!
  • Release Notice:

    GreenPepper 3.0 is now available here:
    http://www.greenpeppersoftware.com/confluence/display/GPW/GreenPepper+3.0+release+notes

    Cheers,
    Christian
    Hi Chris

    You can find the documentation for writing setup here : http://www.greenpeppersoftware.com/confluence/display/GPWODOC/6.+Setup+Fixture

    I know the java sample uses annotations, but it can also work by using a standard method name. Thas is, naming your method EnterRow()

    Code:
     |setup| MySetup|
     | x | y | z |
     | 1 | 2 | 3 |
     ...
     

    Code:
     <?php
     
     class MySetup {
     	private $x;
     	private $y;
     	private $z;
     	
     	function setX($x) {
     		$this->x = $x;
     	}
     	
     	function setY($y) {
     		$this->y = $y;
     	}
     
     	function setY($y) {
     		$this->y = $y;
     	}
     
     	function setZ($z) {
     		$this->z = $z;
     	}
     	
     	function EnterRow() {
     		do some stuff in here
     	}
     }


    So now, GreenPepper will set each variable by calling the setter and after that it will call EnterRow() at the end of the row. And start over for each line of your setup.


    I hope this answers your question?

    Cheers!
    Christian
    Is there anything in the atlassian-confluence.log having to do with greenpepper?

    Print screen of your runner and sut config could be helpful

    you can send them to clapointe at pyxis-tech dot com and I will take a look.

    Sorry for the stupid questions, but I got to ask.
    - You've upgraded to confluence 4?
    - You have remove the 2.9-complete.jar from the WEB-INF/lib, replace it with 3.0m1 and then upgraded?

    Christian
    Your license is available now on http://store.greenpeppersoftware.com/ . I also sent it to you by email. Sorry for the problem
    Hi

    We are working on it, we do not expect to support Jira 5 before late may or in the beggining of june.


    Hi

    I guess what you are talking about are the grouping macros

    You can see an example in the middle of this page
    http://www.greenpeppersoftware.com/confluence/display/GPEXAMPLES/Home

    When you hit the execute button, all the specifications in the group are executed, you can see the result and view the details directly in this page, and you can click on the specification link to go to the actual specification.

    There are two macros that do grouping. greenpepper-children and greenpepper-labels

    children :http://greenpeppersoftware.com/confluence/display/GPWODOC/Children+macro

    Will make a group of all the children pages that are greenpepperized.

    labels : http://greenpeppersoftware.com/confluence/display/GPWODOC/Labels+search+macro

    will make a group of all the pages under a specified space that are taged with a certain label (confluence label)

    I hope this is what you are looking for, otherwise keep asking, we will come up with a solution

    Cheers
    Christian
    Hi Slim

    What is your problem exactly, can I help you?

    Christian
    Fixed!

    Sorry about that

    Christian
    Hi

    Are you using the Nant plugin to run GreenPepper? In this case, you just have to add all the needed dll using [b]<Assemblies Include ..[b]

    Please give me more information if this is not the answer you are looking for.

    Christian
     
    Profile for clapointe -> Messages posted by clapointe [116] Go to Page: 1, 2, 3, 4, 5, 6, 7, 8 Next 
    Go to:   
    Powered by JForum 2.1.6 © JForum Team