Forum Discussion
nmrao
9 years agoCommunity Hero
No voice in maven.
Mainly I was asking for the query which is causing the failure.
It appears that Nastya_Khovrina already suggested you regarding oracle error message. Try it.
Mainly I was asking for the query which is causing the failure.
It appears that Nastya_Khovrina already suggested you regarding oracle error message. Try it.
raiqee
9 years agoOccasional Contributor
Here's the query
Select ${#Project#GP_DBName_1}.MARKETS.ID From ${#Project#GP_DBName_1}.MARKETS
where
${#Project#GP_DBName_1}.MARKETS.EVENTID = ${#TestCase#eventId}
And
(RTRIM(UPPER(${#Project#GP_DBName_1}.MARKETS.DESCRIPTION)) =
RTRIM(UPPER('${#TestCase#marketType}')) OR ${#Project#GP_DBName_1}.MARKETS.MARKETTYPEID = ${#TestCase#marketTypeId})Already tried the solution provided by Nastya but we still encountering the error
- nmrao9 years agoCommunity Hero
Please see if the below helps:
def queryTemplate = """Select ${#Project#GP_DBName_1}.MARKETS.ID From ${#Project#GP_DBName_1}.MARKETS where ${#Project#GP_DBName_1}.MARKETS.EVENTID = ${#TestCase#eventId} And (RTRIM(UPPER(${#Project#GP_DBName_1}.MARKETS.DESCRIPTION)) = RTRIM(UPPER(\'${#TestCase#marketType}\')) OR ${#Project#GP_DBName_1}.MARKETS.MARKETTYPEID = ${#TestCase#marketTypeId})""" def query = context.expand(queryTemplate) log.info "Final query is :\n $query" //Now pass the above "query" object to sql to execute- raiqee9 years agoOccasional Contributor
Hi Rao,
We tried the solution you provided but we encountered a new error, tried running it on soapui
Thu May 04 15:45:21 CST 2017:ERROR:An error occurred [ORA-00942: table or view does not exist
], see error log for details- nmrao9 years agoCommunity HeroFrom log statement you can validate if the query is correct or not. Isn't it? Have you looked at it?