admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Quintiq file version 2.0
#parent: #root
Method PTF_GetInfoFromResultLogPath (
  output String username_o,
  output String clientid_o,
  String resultlogfullpath
) id:Method_LibPTF_pnlTestController_PTF_GetInfoFromResultLogPath
{
  #keys: '[103546.0.100486980]'
  Body:
  [*
    // Retrieve the username and client id information from the result files
    resultlogfullpath := resultlogfullpath.ReplaceAll( "/", "\" );
    splitbyslash    := resultlogfullpath.Normalize().Tokenize( "\" );
    filename        := splitbyslash.Element( splitbyslash.Size() - 1 );
    
    sepbydot        := filename.Tokenize( "." );
    userandclientid := sepbydot.Element( 0 );
    
    sepbyunderscore := userandclientid.Tokenize( "_" );
    clientid_o      := sepbyunderscore.Element( sepbyunderscore.Size() - 1 );
    username_o      := userandclientid.SubString( 0, userandclientid.Length() - clientid_o.Length() - 1 );
  *]
}