This function returns the name of the Silk Test agent that was used for the last agent call. For example, if you call NotepadOA.SetActive(), which uses the Open Agent, and then call GetMachineAgentType(), it returns Open Agent.
Certain functions and methods run on the Classic Agent only, such as the ClipboardClass methods. Calling GetMachineAgentType() after these functions always returns Classic Agent.
[-] testcase TestGetMachineAgentType() [ ] // Use Classic Agent [ ] NotepadCA.SetActive() [ ] // GetMachineAgentType() defaults to Classic Agent [ ] Verify(GetMachineAgentType(), CLASSIC_AGENT) [ ] [ ] // Use Open Agent [ ] NotepadOA.SetActive() [ ] // GetMachineAgentType defaults to Open Agent [ ] Verify(GetMachineAgentType(), OPEN_AGENT) [ ] [ ] // Get Handles to both agents [ ] NotepadCA.SetActive() [ ] HANDLE hClassicMachine = GetMachine() [ ] NotepadOA.SetActive() [ ] HANDLE hOpenMachine = GetMachine() [ ] // Verify the handles [ ] Verify(GetMachineAgentType(hClassicMachine), CLASSIC_AGENT) [ ] Verify(GetMachineAgentType(hOpenMachine), OPEN_AGENT)