Table template parameter mismatch
See original GitHub issueHello I have a table template with many parameters.
I have a parameter “insuranceTax” and “insuranceTaxParagraph” and “geoSegmentation” and “geoSegmentationParagraph”
When I ran the test then in the insuranceTaxParagraph field I received the value of InsuranceTax followed by the text Paragraph. In this example 10.00Paragraph (the same happened for the geoSegmentationParagraph.)
It looks like it matches with the InsuranceTax field instead of the InsuranceTaxParagraph field.
As a workaround I renamed my 2 parameters to paragraphInsuranceTax and paragraphSegmentation
Does it match only on the first x characters or is there something else that I am missing here?
Added the table template which was indeed missing
The issue that I have is that the value for my insuranceTaxParagraph = 0901 But when the script runs it uses the value of insuranceTax = 10,00 concatenated with the word paragraph.
Hopefully it is clear now?
* UPDATE: The Table template calls another scenario which is not a table template maybe that is the origin of my issue? I added that scenario also at the bottom*
|add plan delete first when already exists | |planName |dutchDescription|englishDescription|frenchDescription|germanDescription|dutchShortDescription|englishShortDescription|frenchShortDescription|germanShortDescription|productGroup|productType|productTargetGroupA|productTargetGroupB |productTargetGroupC|productForEntireFamily|productWithReserves|rizivContribution|insuranceTax|insuranceTaxparagraph|commisionAM|commisionPlanId|kpe|medicard|medicardParagraph|mutualityStatus|geoSegmentation |geoSegmentationParagraph|startDate |endDate|maxAge|transfertPossible|annualPremiumAdaptation|errorMessage?| |_TSTPLAN1|NL |EN |FR |DE |NL Short |EN Short |FR Short |DE Short |Inpatient |CORPORATE |PREFERABLE |POSSIBLE_BUT_NOT_RECOMMENDED|NOT_POSSIBLE |true |true |9,25 |10,00 |0901 |100,00 |3 |20 |MEDICARD|0902 |true |Bru/Non-Brussels|0903 |01-01-1970| |65 |true |1 | |
|table template |add plan delete first when already exists |
|delete plan if exists|@{planName} |
|add plan |@{planName}|withDutchDescription|@{dutchDescription}|andEnglishDescription|@{englishDescription}|andFrenchDescription|@{frenchDescription}|andGermanDescription|@{germanDescription}|andDutchShortDescription|@{dutchShortDescription}|andEnglishShortDescription|@{englishShortDescription}|andFrenchShortDescription|@{frenchShortDescription}|andGermanShortDescription|@{germanShortDescription}|andProductGroup|@{productGroup}|andProductType|@{productType}|andProductTargetGroupA|@{productTargetGroupA}|andProductTargetGroupB|@{productTargetGroupB}|andProductTargetGroupC|@{productTargetGroupC}|andProductForEntireFamily|@{productForEntireFamily}|andProductWithReserves|@{productWithReserves}|andRizivContribution|@{rizivContribution}|andInsuranceTax|@{insuranceTax}|andInsuranceTaxParagraph|@{insuranceTaxparagraph}|andCommisionAM|@{commisionAM}|andCommisionPlanId|@{commisionPlanId}|andKpe|@{kpe}|andMedicard|@{medicard}|andMedicardParagraph|@{medicardParagraph}|andMutualityStatus|@{mutualityStatus}|andGeoSegmentation|@{geoSegmentation}|andGeoSegmentationParagraph|@{geoSegmentationParagraph}|andStartDate|@{startDate}|andEndDate|@{endDate}|andMaxAge|@{maxAge}|andTransfertPossible|@{transfertPossible}|andAnnualPremiumAdaptation|@{annualPremiumAdaptation}|withReturnMessage|errorMessage?|
`|scenario |add plan |planName |withDutchDescription|dutchDescription |andEnglishDescription|englishDescription |andFrenchDescription|frenchDescription |andGermanDescription|germanDescription |andDutchShortDescription|dutchShortDescription |andEnglishShortDescription|englishShortDescription |andFrenchShortDescription|frenchShortDescription |andGermanShortDescription|germanShortDescription|andProductGroup|productGroup |andProductType|productType |andProductTargetGroupA|productTargetGroupA |andProductTargetGroupB|productTargetGroupB |andProductTargetGroupC|productTargetGroupC |andProductForEntireFamily|productForEntireFamily|andProductWithReserves|productWithReserves |andRizivContribution|rizivContribution|andInsuranceTax|insuranceTax |andInsuranceTaxParagraph|insuranceTaxParagraph|andCommisionAM|commisionAM |andCommisionPlanId|commisionPlanId|andKpe|kpe |andMedicard|medicard |andMedicardParagraph|medicardParagraph |andMutualityStatus|mutualityStatus |andGeoSegmentation|geoSegmentation |andGeoSegmentationParagraph|geoSegmentationParagraph|andStartDate|startDate |andEndDate|endDate |andMaxAge|maxAge |andTransfertPossible|transfertPossible |andAnnualPremiumAdaptation|annualPremiumAdaptation|withReturnMessage|errorMessage?|
|open plan overview |
|click |id=ctl00_btnAdd |
|fill plan fields|@{planName}|withDutchDescription|@{dutchDescription} |andEnglishDescription|@{englishDescription}|andFrenchDescription|@{frenchDescription}|andGermanDescription|@{germanDescription}|withDutchShortDescription|@{dutchShortDescription}|andEnglishShortDescription|@{englishShortDescription}|andFrenchShortDescription|@{frenchShortDescription}|andGermanShortDescription|@{germanShortDescription}|andProductGroup |@{productGroup}|andProductType|@{productType}|andProductTargetGroupA|@{productTargetGroupA}|andProductTargetGroupB|@{productTargetGroupB}|andProductTargetGroupC|@{productTargetGroupC}|andProductForEntireFamily|@{productForEntireFamily}|andProductWithReserves|@{productWithReserves}|andRizivContribution|@{rizivContribution}|andInsuranceTax |@{insuranceTax}|andInsuranceTaxParagraph|@{paragraphInsuranceTax}|andCommisionAM |@{commisionAM}|andCommisionPlanId|@{commisionPlanId}|andKpe |@{kpe}|andMedicard|@{medicard}|andMedicardParagraph|@{medicardParagraph}|andMutualityStatus|@{mutualityStatus}|andGeoSegmentation|@{geoSegmentation}|andGeoSegmentationParagraph|@{paragraphGeoSegmentation}|andStartDate |@{startDate}|andEndDate|@{endDate}|andMaxAge|@{maxAge}|andTransfertPossible|@{transfertPossible}|andAnnualPremiumAdaptation|@{annualPremiumAdaptation}|withReturnMessage |errorMessage? |
|click |id=ctl00_btnSave |
`
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Table templates can call other scenarios and table templates can call other table templates. But for the latter to work you have to use the ‘special’ scenario call syntax placing all arguments behind the scenario/table template’s name as far as I’m aware. So you get something like:
I’ll see whether I can reproduce your problem with some templates with a few less columns, maybe that will make it clear to me what’s going on.
Hallo,
I am afraid I have been wasting your time, and did not provide you with the complete picture, sorry.
What happened: In the top scenario I reversed the second parameter name by mistake: paragraphInsuranceTax instead of insuranceTaxParagraph
If you try to call this scenario directly this gives an error see the last table. (because there is a parameter mismatch)
Calling it via a table template does not gives this error. which gave as result that the second note line prints the value of @insuranceTax (VALUE1) followed by the word paragraph.
So there is no issue I made a mistake and was confused.
Anyhow I learned now how to call table templates from a table template.
`
|scenario|call1|insuranceTax|andInsuranceTaxParagraph|paragraphInsuranceTax| |note |@insuranceTax | |note |@insuranceTaxParagraph | |note |@paragraphInsuranceTax |
|table template|call2 | |call1 |@{insuranceTax}|andInsuranceTaxParagraph|@{insuranceTaxParagraph}|
|call2 | |insuranceTax|insuranceTaxParagraph| |VALUE1 |VALUE2 |
|call1 andInsuranceTaxParagraph| |insuranceTax |insuranceTaxParagraph | |VALUE1 |VALUE2 | `