How to generate haskell code from Katalon Recorder

i want to generate the haskell code from katalon studio. How can I do this? I am new on katalon.

import Control.Monad.Error
import Data.Maybe
import Network.BSD
import Network.URI

import Test.Selenium.Server
import Test.Selenium.Syntax

test1 :: Selenium String
test1 = do
open “/”
typeText (Name “q”) “stuff”
clickAndWait (Name “btnG”)

main :: IO ()
main = do
host <- getHostName
let uri = fromMaybe nullURI (parseURI “http://www.google.com/”)
sel = (mkSeleniumRCSession host Firefox uri) { selUseBrowse = True }
result <- withSelenium sel $ do
test1
either putStrLn (_ -> return ()) result
return ()

As in this code you can see on line number 5 and 6 its using hackage selenium packages so i just want to ise these packages. Clients requirement :sob::sob::sob:

so, you want’t to use those haskell libs in katalon?
or translate katalon code to haskel code?
or translate haskell code to katalon code?

whatever … none of the above are possible automagicaly.
and option 1 is not possible at all, because katalon is java and haskell is haskell (but both of them have wrappers above selenium)

for 2 and 3 … you have to do it manualy.
we can assist you with 3 if you translate for us what the haskell code is doing, in human language.
with 2 … i have no clue about haskell, never used it.

please be more specific with your request.

LE. are those haskell libs standard wrappers for selenium? or is a custom lib, wrapper above a wrapper?

This is what a client want

import Control.Monad.Error
import Data.Maybe
import Network.BSD
import Network.URI

import Test.Selenium.Server
import Test.Selenium.Syntax

test1 :: Selenium String
test1 = do
open “/”
typeText (Name “q”) “stuff”
clickAndWait (Name “btnG”)

main :: IO ()
main = do
host <- getHostName
let uri = fromMaybe nullURI (parseURI “http://www.google.com/”)
sel = (mkSeleniumRCSession host Firefox uri) { selUseBrowse = True }
result <- withSelenium sel $ do
test1
either putStrLn (_ -> return ()) result
return ()

so … for my understanding, the request is to study the katalon-recorder plugin code … and translate/ implement it in haskell language ( by using the mentioned haskell lib)
So … have fun with that!
Not sure how katalon team or any other user can help you … unless there is a haskell jedi master around … :smiley:

from the provided link, note also:

This is a sample plugin for Katalon Recorder.

aka you posted in the wrong section, has nothing to do with Katalon Studio

note also:

DEPRECATED NOTICE: Please consider contribution directly to Katalon Recorder open-source project instead. See GitHub - katalon-studio/katalon-recorder for more details.

for me does not looks like a client request, but more like a task to prove your abilities for employment …

so … good luck! please don’t cheat.

Thank you for your help and i really appreciate.
I am not cheating and why would i cheat​:joy::joy::joy:

by cheating i mean … don’t try to steal the code from somewhere else or ask somebody else to do it for you.
it has to be your work.
but you can ask for guidance or inspire from other people code, it is part of the documenting process, so it’s allowed.
i think a haskell forum (or stackoverflow section) may be more appropiate to find relevant help.
here … we may help you only opposite, translate from other language to java/groovy/kalaton specific

No i am not going to steal i am just looking for help and guidance and second this is not a part of my job i am just trying to help him and to learn some new things. I really appreciate the help from you guys. This is my first time to post any query on any forum and its a good experience.

Please take a look at these pull requests: