I create a REF - Project, but i got some errors in “GeneralTestCase.xaml”
First, the file didn’t exist after creating a new project with REF?!
I don’t know why - i copied this file from another project where this file is included into my testing-folder.
When i try to run this GeneralTestCase.xaml with data-variants i got the error “Expressions are currently not supportes” ???
I’m using Studio V2022.4.4. What i am doing wrong?
If you speak of RE Framwork, GeneralTestCase.xaml was never part of it as far as I remember. Don’t remember ever seeing this file when creating new project with RE Framework.
It’s most likely the in the project you refer to - with the file - someone has created it as a test file for a general case?
Could you show the error please? It’s most likely that you are using new version of library where it does not exists or created a project in Windows compatibility and the old file was in Windows-Legacy compatibility
Basically this is not a secuence that we should execute, as the name says it will generate a test case for any thing that we need to test, for that we need the UiPath.Testing.Activities library installed.
Thnx for your answer, but - the UiPath Academy says otherwise…
The course “Build a REFramework Procect with Orchestrator Queues” at “Testing a REFramework Project With Queues Using UiPath Test Suite” ( UiPath Academy ) shows how to run GeneralTestCase.xaml.
It must be a Windows compatibility problem, the error does not occur with Windows Legacy.
I have now created two REFramework projects, one with Windows Compatibility and one with Windows Legacy Compatibility. With compatibility Windows Legacy everything works correctly, GeneralTestCase.xaml is created and runs correctly, e.g.:
[quote]01/27/2023 11:39:15 => [Debug] Ausführung gestartet für Datei: GeneralTestCase
01/27/2023 11:39:17 => [Info] REF Legacy-Ausführung gestartet
01/27/2023 11:39:18 => [Info] GeneralTestCase started.
01/27/2023 11:39:18 => [Debug] Running test for Framework\InitAllSettings.xaml
01/27/2023 11:39:19 => [Debug] Initializing settings…
01/27/2023 11:39:20 => [Info] Überprüfung bestanden. Der Ausdruck ‘in_ExpectedResult’ mit Wert ‘Success’ war gleich der Ausdruck ‘Output’ mit Wert ‘Success’.
01/27/2023 11:39:20 => [Info] REF Legacy-Ausführung beendet in: 00:00:03[/quote]
That’s OK
However, there are errors with Windows compatibility.
Although the GeneralTestCase.xaml file should exist according to Studio, it doesn’t exist on disk.
And when I try to take over this file from the legacy project, I get the following error when compiling:
[quote]01/27/2023 11:31:37 => [Info] PREPROCESSING: XAML ‘\itsv.org.sv-services.at\Data\Base Directories\31VP-RPA03\ProfileData_SVclient\Documents\UiPath\REF\ Loading Framework\SetTransactionStatus.xaml’…
01/27/2023 11:31:37 => [Debug] PREPROCESSING: XAML loading complete. (760ms)
01/27/2023 11:31:37 => [Info] PREPROCESSING: XAML ‘\itsv.org.sv-services.at\Data\Base Directories\31VP-RPA03\ProfileData_SVclient\Documents\UiPath\REF\Framework\TakeScreenshot .xaml’ is loading…
01/27/2023 11:31:37 => [Debug] PREPROCESSING: XAML loading complete. (20ms)
01/27/2023 11:31:37 => [Info] PREPROCESSING: XAML ‘\itsv.org.sv-services.at\Data\Base Directories\31VP-RPA03\ProfileData_SVclient\Documents\UiPath\REF\Tests\GeneralTestCase .xaml’ is loading…
01/27/2023 11:31:38 => [Error] An unexpected error occurred during the library compilation process: The workflow file ‘\itsv.org.sv-services.at\Data\Basic Directories\31VP-RPA03\ProfileData_SVclient\Documents\UiPath\REF\Tests\GeneralTestCase.xaml’ contains an InvokeWorkflowFile activity with the dynamic expression ‘[ in_WorkflowFile]’. Expressions are not currently supported.[/quote]
Any hints why it doesn’t work with compatibility windows?