Is it possible to validate using keyword tests how long a value is in an input field.
For example;
Input field 1 contains 123456789, I would like to confirm that the length is 9 characters long. The closest I have found is Property checkpoint doesn't appear to offer counting characters of the string itself.
Thanks,
Keyword test validate characters in input field.
Excel Data Source in SoapUI Project fails to save file source
Once upgrading to version 1.4 of ReadyAPI, my excel based data sources fail to read the file. The data source is blank and will not save when I re-populate the data in the configuration.
Once I downgrade to version 1.3 the functionality works correctly.
Is this a known issue with 1.4?
Any assistance would be appreciated.
Art Wightman
How do I iterate over links in TC Python script?
def GetPageLinks(page): linkList = [] i = 0 while i < page.contentDocument.links.length: if Browsers.CurrentBrowser.Family == Browsers.btIExplorer: linkList.append(str(page.contentDocument.links.item[i])) #IE if Browsers.CurrentBrowser.Family == Browsers.btChrome: linkList.append(str(page.contentDocument.links.item[i].href)) #chrome i = i + 1 linkList = list(set(linkList)) return linkList
Hello.
How do I ask for link from FF? None of what I tried works. The code above seems to work fine for Chrome & IE.
how to close iOS app via script?
Hi. how to close iOS app via script?
i can run it via script , but how to close it after one testcase?
Traverse a Tree in Find Object
Hi I need help to traverse to a particular object in a single find command. the name mapping does it but in case movable panels are at run time i need to put forth find parameters like this
1. Parent - some_Object.Find*([prop name ],[value],x,x,x)
2. ... some object 2
3. ... some object 3
4. Final objhect = some object 3.Find ( Something);
Its very important for us and very very often used ones. where even condirtional name mapping is not helpfull.
As of now I am doing a loop to no of parents and repeat find.
Thanks,
Mahesh
How to check the connection string is active or not?
Hello,
I have a conneciton string ="Provider=SQLOLEDB.1;Password=*****;Persist Security Info=True;User ID=**;Data Source='*****".
How to Check the Above connection string is active or no?
InputBox() method is not invoked when it is included in the Script Extension method
Dear Experts,
Problem Summary: InputBox() method is not invoked when it is included in the Script Extension method.
Description: I created a script extension(with RunTime Object name- 'GenericFunctions') with a method called 'SampleMethod', that internally has 'InputBox("Enter User Name").
After the Script extension is installed successfully, from Test Complete project, when we call 'GenericFunctions.SampleMethod()', I surprised to see that it is not prompting the InputBox to receive user name, which is supposed to display.
Kindly do let me know where exactly the problem exists. Suggest me any further configuration i need to do, for any other alternative to display InputBox through Script Extension Method.
Thanks and Regards,
Jayakoti
Realtime results in TestExecute
Is it possible to see/get test results in real time(as soon as possible) ?
If I run suite of 12 tests on all connected devices(3) I see if there is any issue as soon as all tests are finished(in more than 1 hour) :-( . I'd like to know during test run if there is some issue and in which test. Does this feature exist in current version of TestExecute because I didn't find it ?
Class instantiation using vbScript
So far, I'm not loving TestComplete 11. I created classes which have worked perfectly in TestComplete 7, and 10. Now that I've upgraded to TestComplete 11, the instantiation of the classes work fine for a while, then they simply stop working and once that happens, they don't work again.
For example:
I have a unit, Testlogging.svb
Inside this unit is the class definition:
Class TestLog
...Private Variables
...Methods
...Properties
End Class
Also in the unit is the helper:
Function New_TestLog()
Set New_TestLog = New TestLog
End Function
In my test scripts I include the unit with 'USEUNIT TestLogging and when I want to create a new instance I make the call as follows:
Dim MyLog: Set MyLog = New_TestLog()
This has worked since it was written in TestComplete 7 and was working fine even in TestComplete 11 until the this morning when I went to run a script and got the error:
Object doesn't support this property or method: 'TestLogging.New_TestLog'
In the unit where the call is made, I can use Ctrl+Click on New_TestLog and it takes me to the procedure so the reference is not the problem. I tried fully qualifying the call with Set MyLog = TestLogging.New_TestLog but that fails as well with the same message. If I put a breakpoint on the call that fails to step into it, then run the test what happens is without stopping at the breakpoint, I get the same error. If I put a breakpoint on the last executable line BEFORE the call, same issue. Note that breakpoints in every other location had been working fine.
While I was writing this, I tried again to run the code without making any changes and now it works. For how long, I have no idea.
Has anyone else had any problems with this?
Thanks
Bill
How to enable 'Transfer-Encoding: Chunked' for RESPONSE
Hi all,
I have been trying without any success to get a chunked RESPONSE by varying the response length, checking and unchecking the Preferences -> HTTP Settings -> ‘Response compression’, using a ‘Chunking Threshold’ (which is just for REQUESTs), setting a ‘Max response size’, and so on!
It’s worth to mention that the ONLY time I saw my SOAP RESPONSE with ‘Transfer-Encoding: chunked’, was when I forgot to start my Mock Service and then I proceed to run my SOAP REQUEST. The message was “There are currently 0 running SoapUI MockService” in the SOAP Body, but a chunked response was given.
Do you know any method to get a chunked RESPONSE message?
I'm using SoapUI 5.2.0. With 4.5.2 I get the same results.
Thanks in advance for your help.
Mariana.
selectively forward request from mock service
I'm trying to configure a mock service where depending on the request, either return a mock response or forward the request to the actual live web service. I think the OnRequest script is the place to do this.
So far, I'm able to query the mockRequest to decide if the request should be forward to actual web service. My issue is what's the best solution for sending the request from the mock service. I've seen some examples using groovy-wslite and some not.
I've tried to follow the suggestions here but need more details:
Thanks!
Tim
Can I Add Test Items from Another Suite?
I have 2 suites for two different applications that work with each other.
I would like to call 2 keyword tests from another suite. How do I do this in the area where I string test items together.
Right Click on Project Suite | Edit | Test Items |
In this area I want to Add Project Test Items from the native suite and another suite.
How?
Adding tables to Stores > Tables using jscript
Is there a way to add tables to Stores > Tables uisng jscript (same way as picture can be added to Stores > Regions using "Regions.AddPicture" method)?
var table = (myProcess).WinFormsObject("dgvTable"); //table has 10 columns
I would like to add only 5 columns of "resultsTable" object using jscript. I know how to add them manually by Right-click > New Item > Highlight the Object > Select required columns. But I have multiple tables that I need to add and would like to do that using script.
Thanks in advance for your help.
How to create custom DataSet for SoapUI DataExport xml/csv report
Did anyone tried to change xml or csv reports to custom structure of data sets, that could be used to export reports from SoapUI Pro. My idea was - to extend startTime or add additional field of start date and testSuite/testCase description in testSuiteResults.xml. Or maybe I could add additional data set?
I want to achive smt like that:
<testCase>
<reason></reason>
<startTime>28.08.2015 01:32:04</startTime>
<description>test case description</description>
<status>FAILED</status>
<testCaseName></testCaseName>
<timeTaken>0</timeTaken>
<testStepResults/><failedTestSteps/>
</testCase>
How to use the value in the previous function
For example:
function a (b)
{
return (c:c)
}
function a (e)
{
return (f:f)
}
function d (c,f)
{
//Statement
}
I am calling the functions thru excel, I would like to run function a twice and use the returned value in function d. how can I do that ? or if there's any other easier way?
I Need more Performance information using VB
Hi,
I want to test performance of oure desktop application and write the results to an Excel file. Performance not only in elapsed time but also used memory.
Now I use Win32API.GlobalMemoryStatus to get available memory. But the available counters here do not change as I expect, so I think I need other memory invormatio.
In the Performance Counters, there is a counter available Memory - Commit Bytes
Now this seems to be the info I need. But How can I use this in my VB script
I found that this counter is availeble in the GetPerformanceInfo API, but cant find an example hou to use this API.
Can anybody help me with this one?
How get the show mobile screen using code.
I need a way to activate show mobile screen using TestComplete code.
If I have to run it in a batch file I need the "Mobile Screen" to appear on my desktop. Let me know how to activate this using code.
Property Checkpoint shows wrong Actual Value
Hello,
I have been having some problems with property checkpoint lately. Usually property checkpoint works the way I expect, it checks the contentText of objects on my web page and if the contentText is incorrect the test fails. The problem is, lately I have been seeing failed tests in the middle of my test suite run because the property checkpoint fails saying "Actual Value" = "".
When I check the page and the screen shots I can clearly see that the objects contentText is not empty, and if I re-run the singular test by itself the test passes. This issue seems to happen randomly when running a large group of tests. Has anyone noticed this issue before? Is there a way of fixing this issue? At the moment I am trying to fix these issues by putting delays in front of the property checkpoint however I personaly do not like delays as they slow the execution speed of my tests and they are just ugly.
I am running TC 10.6 on Windows 7. (TC 11 has given me too many problems so I have downgraded my TC for the time being). Your help is appreciated,
Cheers!
Chris Violo
Quality Assurance Analyst at Intelex Technologies Inc.
\r added to each line of the request
Hi,
In SoapUI 5.2.0 => create a new SoapUI Project, add new TestSuite with a request. Save the file.
In SoapUI 5.0.0 => open the file that was created in 5.2.0
Problem:
after each line of the request : a "\r" is added, which makes the test unusable in SoapUI 5.0.0
What to do about this ?
Many thanks,
Vincent
\r added automatically to each line of the request
Hi,
In SoapUI 5.2.0 => create a new SoapUI Project, add new TestSuite with a request. Save the file.
In SoapUI 5.0.0 => open the file that was created in 5.2.0
Problem:
after each line of the request : a "\r" is added, which makes the test unusable in SoapUI 5.0.0
What to do about this ?
Many thanks,
Vincent