Hi,
I need to know there is or not active Ajax request at the current moment.
The active request I mean the request which has not been back yet from a backend?
Is there a method to do that?
Thanks
Hello,
I'm currently using Test Studio Version 2016.3.928.0 to test an ASP.NET Web Application. I have a test scenario that clicks a button which produces a file for download. In Firefox, Chrome and Internet Explorer I use the Handle Download Dialog step and it saves with the file path and name I provide. However, when I run this in Edge it will prompt for download with the option of Save, Save As, Cancel; but it appears that the file doesn't get saved (I believe the dialog gets canceled), because in the next step I check the file location to see if it's downloaded and the file isn't there. I don't see it pressing Save As, and I do have the setting enabled that says 'Ask me what to do with each download.' The interesting thing about this is that the Download step passes even though it doesn't do the Save As action like it does in the other browsers. I was wondering if this was a known bug for Edge? Or does Test Studio not do the Save As in Edge?
Thanks,
Jessica
Hello,
Firstly, I hope I don't duplicate any already made question or thread. I have done some search and I couldn't find what I was looking for.
Telerik Frameworks trough BaseWebAiiTest.Log allows me to write a log entry in the Event log via LogType.EventLog which is great :D
What I am wondering if there is some built in way to in addition to that set the log level. Right now, I am visualizing all the entries as "information" level whereas some of them should be errors.
In some other projects, using log4net as logging framework I was able to set different type of log levels in the windows event log.
Is there any built way on Telerik framework to accomplish this?
Regards,
Hi ,
I have 2 functions or methods in the test. In function1, I have a variable called x which stores the inner text of particular span in my webpage. Now I need the value of the variable to be used in my Function 2. I dont want to use the extract step . I want to find the element using find expression in function1 and use the value in function2 .
Eg :
Public sub function1()
Span = Pages. xxxx.xxxx
Dim X as string = Span. innertext ()
End Sub
--------------------------------------------------------
Public Sub function2 ()
Messagebox.Show("Document id is :" &Docid)
End Sub
Could anyone help me to do this ? Thanks in Advance!!
I'm using the Download dialog step to download an XLSX file from our webapp. I set the export path in code, and data drive the path. Timeout is set to 75000ms with a 1000ms initialization time.
- Works perfectly in IE, exactly how I would expect.
- Chrome is opening the dialog, and it is filling it in and downloading the file, however that's all it does. Once the file finishes downloaded, it just sits on the webpage until it times out.
Adding a delay between the clicking of the button and the handling of the dialog did nothing.
Hi,
I'm new to this app and have a problem how to connect a tablet. Device is regularly connected via usb as is required and I cannot connect it to Test Studio, and I can connect device via WiFi, but then I cannot use it as input device.
Please help.
Hi ,
I have a web application built in html5. I am trying to type some input values in one of the input fields..Initially I recorded the Step.
=> The Recorded step is like "KendoInput Value 500 entered" - When I give "Edit in Code " the step is like..
=> Pages.xxx.Span.TypeText ("500")
Now, I run the step. It goes and enters the Value as "00" - 5 is not present.
Then I tried to edit the code as Pages.xxx.Span.TypeText ("00500") and run the step. Now I got the value 500 entered.
I am not sure, why the first 2 value are getting erased out..
Could anyone help me to find out the issue behind it..Thank you!!
Regards,
Nithya A.
I have encountered several methods of storing variables that can be accessed across tests, and I am wondering what the recommended scenario is. My goal is to be able to run a master test with several sub-tests (and some with sub-tests themselves), but to have each primary sub-test store variables based on input, and then to react to those variables by skipping unnecessary tests or adding/subtracting/modifying values to fit certain constraints. Basically, I need to set and get variables across multiple tests in a longer process.
Here is what I know currently, but correct me if I'm wrong:
1. Extracted Values
Using SetExtractedValue(string dataBindVariableName, object value) I can create variables that are accessible across tests. This allows me to access the values via GetExtractedValue(string dataBindVariableName). The challenge is that these get/set methods automatically fail the test whenever the variable is not present (e.g., I used a "get" in a scenario where the variable has not been "set"), so I have to nest all of them in Try/Catch blocks. If I want to conditionally check to see if these values exist, I have to put each one in its own Try/Catch block so I can respond to each variable independently. While possible and functional, this gets tedious and very cluttered in code, so I have looked at 2 other options:
2. DataBound Variables
Using Data["variableName"] I know I can access the values stored in local or external data sources, based on the column name. My confusion is how this interacts with extracted values, as sometimes I seem to be able to switch back and forth between Data[""] and GetExtractedValue(""), but sometimes I can't. Also, the same rigid constraints exist on data bindings as with extracted values, meaning that I have toput them in try/catch blocks if I want to conditionally test for whether the variable is present yet or not.
3. Utility Classes
This might be the easiest option, and the limitation might be my programming knowledge here. I found documentation talking about creating a utility class in Test Studio standalone. It's a static class with static variables, which works great for some of the stock browser interactions I want to do in dozens of places throughout my test suite. The challenge is that I have to add in references to the Browser (for ActiveBrowser.Refresh/ActiveBrowser.RefreshDomTree), the Log (for Log.WriteLine), and the Manager (for Manager.Desktop). However, since a static class is not instantiated, my only option is to pass in all of these values every time I run a function. Not the end of the world, I suppose. I am currently using a standalone non-static class file (extending BaseWebAiiTest) to work around this, but I don't know of an easy way to pass this between tests and sub-tests. Is there one?
I imagine you will want code samples, and I can provide them, but I'm mostly looking for a general principle. My question is about the expected way these features function in general, and which one fits my need to pass variables and functions between tests.
Thanks ahead of time!
Regards,
Steven Klassen