hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
*** Settings ***
Documentation  Advanced Relation testing on Normal Operations. Run with UTFNormalOperations
 
Library  qtestlib
Library  OperatingSystem
 
Suite Setup  TestSuite Initialize
Suite Teardown  TestSuite Finalize
 
Test Timeout  100
 
*** Variables ***
# Do not change remove this, we need these for ALM execution
&{alm_params}
 
# Do not remove this, special pamater ALM and RnD local run
# Provide alternative to specify the external configuration from cmd
&{external_settings}
 
# Set the Quintiq settings
# Available settings are:
# ignore_errors=12345,23456  warn_errors=12345,23456  suite_settings_file=local_local.yaml  suite_settings_section=Database.MSSQL2012
&{quintiq_settings}=  ignore_errors=113796   
 
# Do not change these set of parameters, for library internal usage
&{global_params}=  current_dir=${CURDIR}  &{quintiq_settings}  &{external_settings}  &{alm_params}
 
# Set QExecutable commandline argumment, for eg: /webserverport=8888  /webservermode=2
@{qdbodbc_param}
@{qtce_param} =  /tceditor=mixed  /webserver  /webserverport=8080  /serviceport.web.enablelocalhostnonsecure  /noqimauthentication
 
# Do not use qserver-param for permanent change, but use model role config or local config for ci
@{qserver_param}
 
# Set the QExecutable settings:
# Default value for max_start_time, max_shutdown_time, max_execution_time are 100
# Available settings are:
# max_start_time=${120}  max_shutdown_time=${120}  max_execution_time=${120}  ignore_errors=12345,23456  warn_errors=12345,23456
&{qserver_settings}=  max_start_time=${300}  max_execution_time=${1200}
&{qtce_settings}
# &{qtce_connection_outgoing_anonymous}=  servername=localhost  port=6000  index=0  services=SERVICES  protocol.securecommunication.authentication=Anonymous  protocol.streamtype=SECURESOCK_STREAM
# &{qtce_connection_group_outgoing_anonymous}=  groupactive=true  groupindex=0  groupname=SERVER  groupkind=Generic  connection0=&{qtce_connection_outgoing_anonymous}  
# &{qtce_connection_incoming_anonymous}=  port=6300   protocol.securecommunication.authentication=Anonymous  protocol.streamtype=SECURESOCK_STREAM
 
# For Quintiq version 6.1 onwards
# &{qtce_connection_incoming_qthinclient}=  port=6300  service=Quintiq  minimumsecurity=Anonymous
&{qtce_connection_incoming_qthinclient}=  port=6300  service=Quintiq  minimumsecurity=Nonsecure
&{qtce_connection_incoming_webclient}=  port=6300  service=Web  minimumsecurity=Nonsecure
&{qtce_connection_group_incoming}=  active=true  groupindex=1  0=&{qtce_connection_incoming_qthinclient}  1=&{qtce_connection_incoming_webclient}
 
# Set the mdsstoragedefinition settings, leave it empty and it will use the settings in local settings file(yaml/json)
# Available settings are:
# audit_trail_enabled=False  audit_trail_location=${EMPTY}  database_enabled=True  datasetstore_datasource=DEFAULT  datasetstore_enabled=False
# datasetstore_is_local=False  db_format=Legacy  driver=ODBC  max_column_name=0  max_table_name=0  name=  ${EMPTY}oci_connection_basic_host=${EMPTY}
# oci_connection_basic_port=1521  oci_connection_basic_service=${EMPTY}  oci_connection_tns_name=${EMPTY}  oci_connection_type=Basic  parameters=${EMPTY}  password=${EMPTY}
&{mdsstoragedefinition}
 
*** Keywords ***
TestSuite Initialize
  Initialize  &{global_params}
  Setup Model Settings
  Register QComponent  QServer  MyServer  @{qserver_param}  &{qserver_settings}
  Register QComponent  QTCE  MyTCE  @{qtce_param}  &{qtce_settings}
#  Register QComponent  QThinClient  MyTC  
  Init Arch  DefaultSettings
#  Configure Outgoing Connection  MyTCE  connectiongroup1  &{qtce_connection_group_outgoing_anonymous}  
  Configure Incoming Connection  MyTCE  serviceportgroup1  &{qtce_connection_group_incoming}
  
  Start QComponent  MyServer
  
TestSuite Finalize
   Sleep  1s
#  Finish
 
Dummy log
  Start QComponent  MyTCE
  Log  Hello,World
 
*** Test Cases ***
UTF Test 1
  Dummy log
UnitTest_UTF_UnitTestMPCustomerOrderUI
  Execute UTF  MyServer  UTF_UnitTestMPCustomerOrderUI
UnitTest_UTF_UnitTestMPRoutingFilterUI
  Execute UTF  MyServer  UTF_UnitTestMPRoutingFilterUI