Access thread count number
Hi. Is there a possibility to acces the current thread count as a property or something else? I would like to write some properties into an external file, but I also have to know the actual thread count when testing with several threads. I'm accessing my file as follows: File file = new File("D:/saveLabel.properties") file.delete() file << ("\r\n") file << ("PickupCode: ") file << (testRunner.testCase.getPropertyValue("PickupCode").toString()) So, my question: Is there a possibility to acces the number of the thread which is actually running? (Like testRunner.testCase.getPropertyValue("actualThreadCount").toString()) or something like this..) Thanks in advance.Solved1.8KViews0likes1CommentSoapUI - Remember path of last added wsdl
If you need to add two or more WSDLs from your file system, every fileyou add starts the "browse" dialog from SoapUI's instalation folder. It would help a lot if the last path is remebered, so no need to navigate to the directory every time. Thanks again. Best regards, Federico.1.6KViews1like0CommentsLoading Property Values Dynamically from a File
I need to load a section of my request dynamically each time. I created a property at the test case level called Message ( ${#TestCase#Message} ) and added a Property step that is supposed to read the value from a file. There are 3 steps in my test case: Load the Message property (the value of the property is defined in the file) Execute the request (inserts the property value into the request) Property Transfer (returns the response status) The request has the property name substituted for the dynamic section.However the value is not read when I execute the test case, it only contains the value from when I manually execute from the Property step editor. It merges the property request into the request just fine, and the property transfer is also working, but the value is static and not dynamically loaded. How do I get it to update the property value every time I execute the test case? I am using an external tool that interfaces with SOAP UI so I want to stay away from scripting, just want to use standard SOAP UI steps. Screen shots attached, any and all help greatly appreciated!Solved1.5KViews0likes1CommentData source error using gitlab
Hello, While writing my tests, I import from csv.file data that are used in request (body) but when launched through GitLab, in allure reports my tests failed with : Error:java.io.FileNotFoundException: /projectDir/file.csv (No such file or directory) ----------------- Messages ------------------------------ Could you help me find the right way to write the path? The csv files are in /projectDir/TestSuite/file.csv I tried with ${projectDir}/TestSuiteName ${workspaceDir}/TestSuiteName /branch/projectName/TestSuiteNameSolved1.3KViews0likes4CommentsWriting log messages of test to the file
Hi, When TestComplete is being used, We try to write log messages which are come out of the "Log. Message()" or "Log.Error()" function to a text file in order to keep the log messages together as a log.txt. However, after creating a file, we try to use "Log.File()" function or "SaveResultsAs()" to write logs messages to this file, It just created the file, could not write anything. Is there any way to keep log messages that are written in the test script in the txt file in a given directory? as an example code; function creatingAndWritingLogMessagesToTheTxtFile(){ //create a file var filePath="C:\\.....";//Directory aqFile.Create(filePath); var logName="filePath"+".mth"; Log.SaveResultsAs(logName,lsMHT); } And in the functions how we can write the log messages to this created file that is created to keep log messages? as an example code; function testA(){ //....codes doing something Log. Messages("Test Successful"); //Here How can we use that method (If it is useful) to write this log to that text file?? }Solved1.3KViews0likes3CommentsUpload an audio file
Hello, I would like to attach an audio file in a SOAP request. I would like to place this file at a specific location in the request but I can't. Here is the location in the request where I would like to drop the file: <v1:mediamessage> <xsd:codec> <xsd:codecID>audio/MPA;layer=3</xsd:codecID> </xsd:codec> <xsd:location>Here the message.mp3 file i want to upload</xsd:location> </v1:messageMedia> I don't have a server installed on my pc.(XXX is because i prefer hide the ip) If I do "attach" and select a file, I don't know where it will be placed in the request. It seems to me that once the file is uploaded, I should have something like this instead: <v1:messageMedia> <xsd:codec> <xsd:codecID>audio/MPA;layer=3</xsd:codecID> </xsd:codec> <xsd:location>cid:123564548786477</xsd:location> </v1:messageMedia> if I click on "attachment" and then select a file, when I select the drop-down list in the "part" column, the cid is not present either. i've tried this method: " To specify a MTOM attachment: Set theEnable MTOMrequest property totrue. Add a file to the Attachments tab as it was describedabove. In the Part column, select thecididentifier that your request body specifies " I hope you will understand my request thank you in advance for your help because I'm stuck here.871Views0likes1Comment