Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Tuesday - Breakout - Automate Tests Using Genero Ghost Client - Frank Gross  (Read 1352 times)
Reuben B.
Four Js
Posts: 834


« on: November 17, 2020, 12:00:00 pm »

Quote
Are you interested in improving the quality of your Genero applications? In this introduction to the Genero Ghost Client, you will learn how to generate and edit tests and then how to automate them before you go to production.

This thread will be used to collate questions and answers from the live chat of Frank's presentation and any questions you may have after watching a recording.

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Sisavanh S.
Four Js
Posts: 67


« Reply #1 on: November 23, 2020, 10:21:03 am »

Hi Pedro,

During the session, you asked:
---
It is possible to use ggc on aplications built for genero desktop client instead of browser client?

And in batch applications, without UI?
---

GGC can be used instead of any Genero front end  (GDC, GBC, GMA, GMI,..).
About TUI, unfortunately this is not available.
What do you do with batch applications ?
We can file a request for that, but we need to make sure that fits your need.
Please, contact your local support center with your use cases.

Many thanks in advance.
Best regards,
Sisa.
Reuben B.
Four Js
Posts: 834


« Reply #2 on: November 27, 2020, 07:17:15 am »

I'll provide a different slant for that answer.

When I am introducing GGC I like to make use of the diagram here http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_feconn_protocol.html.  That shows the foundations of our architecture with the fglrun process on the left, and on the front-end we have the graphical client such as GDC, GBC, GMI, GMA (With a deployed mobile app think of the whole diagram being the app, and same for TUI).  You can think of the Genero Ghost Client (GGC) as being another front-end implementation that has the same communication to the fglrun process as GDC,GBC, etc, only instead of rendering the Abstract User Interface (AUI) to the screen, it is a program allowing the tester to interrogate the received AUI values and to simulate user input back to the back end.

The act of recording a log is capturing the info labelled 1,4,6 in that diagram, and then the act of generating a GGC program creates a program that tests the values coming in (1,6) to check that they were the same as what was recorded,  and sends back the user actions (4).  You can then modify the test program to test different inputs and expected outputs.

It doesn't matter when you record the log if the front-end program on the right is the GDC, GBC, or even the GMA, GMI development clients, as long as we are capturing that log.  So I hope that gives some insight on why we can use GGC on applications built for both GDC and GDC.

Someone then asked about TUI, and if you run --start-guilog with a TUI program it will run but no log info will be captured.  However if you run the TUI program using traditional mode http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_DynamicUI_005.html, then you can capture the log, generate a GGC test program etc.  So if you are prepared to accept that running your TUI program using Traditional Mode displays same values and has same actions as if the program was run in TUI mode then you can look at using Ghost Client to test your TUI applications via the use of traditional mode.

With the question about batch applications, as there is no UI there is nothing for the GGC to capture.  However consider this, run a GUI program to enter data used by the batch process, run the batch process, and then run a GUI program to test the values changed by the GUI program.   That can be captured and tests generated by the Genero Ghost Client.  So consider a batch process such as month end, the test log you capture might consist of logging into your system, running GL transaction programs to enter GL data, running GL Month End process, run GL enquiry to check data changed by the Month End process.

Hope that helps.

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines