Telerik Forums
Test Studio Forum
0 answers
28 views

I have a Get query that when I run in Postman with the correct security token, returns:

(*** is redacted)

Get https://***/?q=SELECT Id, Portfolio_Status__c, Open_for_Submissions__c FROM Teaching_Portfolio__c WHERE id = '***'

"totalSize"1,
    "done"true,
    "records": [
        {
            "attributes": {
                "type""Teaching_Portfolio__c",
                "url""***"
            },
            "Id""***",
            "Portfolio_Status__c""Invitation Sent",
            "Open_for_Submissions__c""Yes"
        }
    ]

 

I am currently designing a test in Test Studio that will check to see if "Open for Submissions__C" is Yes or No. 

If No, I will run a Patch API Call that changes the value to Yes, and then a Get to verify that the data has been changed. 

If Yes, Test Passed.

Question 1 - I started with an If statement in Test Studio, but the API call I wrote does not appear in the drop down menu as a verification option. Should I instead just have my test run an API Test, and put the If/Then statement in the API test? 

Question 2 - I am having a hard time recreating the API call within Test Studio. For my first step I made an HTTP Request with the above Get call, the security token as Authorization in the body tab, and in the Verification Tab - Source:Body,  is equal to 'Yes'

I do not know what to put in the JSONPath to find that Yes or No value from my API Call. Overall I'm not sure this is the best way to get the information I want. Should I be using a Verification API test instead of HTTP? 

Any help is much appreciated, I'm a bit lost.  

Brian
Top achievements
Rank 1
 asked on 25 Nov 2023
2 answers
95 views

I’m evaluating Test Studio internally at the moment for a WPF application we are writing. Given that I have full control over the WPF App and can make any changes I need; are there any best practices I can implement in WPF to facilitate Test Studio when it is recording testing steps? 

e.g. Control Names, a helper package for exposing the WPF structure to Test Studio?

Any suggestions on what I can do to make the generated steps more readable would be greatly appreciated.

Thanks,
Richard

Elena
Telerik team
 answered on 22 Nov 2023
2 answers
53 views

In a WPF test, how do I wait for a button that is disabled due to an async save in progress to complete and become enabled before continuing the next step in the test? 

Thanks,
Richard

Elena
Telerik team
 answered on 22 Nov 2023
1 answer
28 views

Hello,

I'm automating some components of a web page that's part of an application.  When I navigate to this page, however, I'm not able to see the DOM tree.

Is there a setting in Telerik that I need to configure (or re-configure)?

Thank you for your help.

Alexander
Telerik team
 answered on 15 Nov 2023
1 answer
30 views

It seems like you've created a test project targeting .NET Framework 4.8 using xUnit in Visual Studio 2022, and the tests run successfully within the IDE, but you encounter errors when using dotnet test command.


> dotnet test

D:\Workspace\Project\DataManager_Repositories\DM-Foundry\Test_Client\Foundry\Foundry.csproj(145,3): error MSB4019: Imported project "C:\ProgramFiles\dotnet\sdk\7.0.400\Telerik\WebUITestStudio\Telerik .WebUITestStudio.targets" not found. Make sure the expression in the import declaration "C:\Program Files\dotnet\sdk\7.0.400\\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" is correct and the file exists on disk.

Elena
Telerik team
 answered on 15 Nov 2023
1 answer
27 views
I'd like to create an automated test which requires either dragging and dropping a local file, or opening Windows Explorer and choosing a local file.
Can this be done in Test Studio?
Elena
Telerik team
 answered on 08 Nov 2023
1 answer
29 views

Does anyone else have this problem?

I updated a few days ago 2023.1011.1.
I highlight and run a set of steps. When it ends, the Steps Pane scrolls to the bottom.
Since I may have hundreds of steps, remembering where I was and scrolling up to get there is time consuming.

If not perhaps it is a Win 11 issue.


Steven
Top achievements
Rank 2
Iron
 answered on 27 Oct 2023
1 answer
30 views

Hi,

What will happen while doing "Discard local changes" in WFP application?

Elena
Telerik team
 answered on 25 Oct 2023
3 answers
56 views

I'm getting them all over. If I record a new step it works, even though the search is the same as the existing one.
Is anyone else getting these errors?

InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ArtOfTest.WebAii.Win32.Annotator.Clear()
   at ArtOfTest.WebAii.Headless.HeadlessMouse.ClickImpl(MouseClickType clickType, Int32 x, Int32 y, Int32 wheelDelta, Boolean relativeCoordinates)
   at ArtOfTest.WebAii.Win32.Mouse.ClickElement(Element element, MouseClickType clickType, Point offset, OffsetReference reference)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DesktopActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Jim
Top achievements
Rank 1
Iron
 updated answer on 18 Oct 2023
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?