Quantcast
Channel: New board topics in SmartBear Community
Viewing all 26529 articles
Browse latest View live

Compatibility issues with MS Lync or Skype for Business

$
0
0

Hi

 

Anyone experiencing compatibility issues between Test Complete and MS lync or MS Skype for Business? I cannot operate TC and MS lync/Skype both at a time and if I do, TC freezes and crashes. Any feedback from experts or users please?

 

Thanks & Regards

Kumar


What is the best way to update all references to an object in a project?

$
0
0

We just did an upgrade that changed some objects and/or their hiearchy and I have over 300 tests to update. I've looked for the following options, but cannot figure out how to do them in TestComplete. Is there a way to do either of the following?

 

  1. Update the object that an alias maps to so that my tests can reference the same aliases (no refactoring required) but the aliases correclty point to the new objects. 
  2. Map the new object and then refactor all tests that use the old object to use the new object. For example, I would refactor all object actions or property checkpoints to use Aliases.MyApp.ObjectB instead of Aliases.MyApp.ObjectA

How can I achieve my goal without going through and redoing every affected checkpoint or object action in all of my tests? Thanks!

 

Failed to extract any value for the variable

$
0
0

Hi,

 

I'm testing the LoadComplete to see if we can use it in our comming upgrade of our test setup.

However I have run into a problem with a simple flow in our Web Application.

 

When I run the verify of the recording I get "Failed to extract any value for the variable " errors, if I then go to the step in the Scenario and look at the Data Selectors, I have the Selectors that LoadComplete created during recording.

 

If I copy the Body from the Response and then run the Regular Expression on the body, I get a vlid Match. So I am a bit perplexed to this. And as it isn't possible to step through the scenario to see if there are some issues during the run I can't figure out why it isn't possible for the Data Selector to get the value.

 

Hope someone might be able to help or give me some ideas on how to get this working. Thanks for you time.

 

Regards,

Mike

Closing the current browser/virtual browser on TestComplete 10.60

$
0
0

Hi Guys,  

 

 

I'm running some crossbrowser tests, but when I do that, a lot of browsers and virtual browsers stay opened, how can I close those browsers?

 

I just read this article, but it didn't work: http://support.smartbear.com/viewarticle/59764/ , could you guys explain to me how can I do that? How can I close the current running browser / virtual browser?

 

 

Thank you very much!

Possible bug or change in 5.1.3 filename string handling?

$
0
0

I have a test case written in 5.0.1 that is working fine.  When I try and run the same testcase in 5.1.3 it fails.  I've narrowed the issue down to this:

 <s:Body>
  ${=new File("C:\\SOAPRESULTS\\requests\\" + (context.get('fileList')).last()).text}
   </s:Body>

 

Which I use to insert a file which contains the SOAP body (there is a Groovy script before this that prepares the fileList based on a directory structure). 

 

This works perfectly in 5.0.1.

 

In 5.1.3 I get an error response that the SOAP message had no body.  I noticed right away that in 5.1.3 the 'r' in the word requests from above was missing so added it in to no avail.  Went back to 5.0.1 and there was a double 'r' there now.  Something changed in the handling of strings in this version.

 

Thanks

Norm

how to simulate complex parameter string in Rest api get method request

$
0
0

how to simulate complex  parameter string   as below in Rest api get method request

 

get?{"station_info":{"device_id":device_id_value},"user_id":user_id_value}

 

 

 

 

TestComplete 10 Loses Focus While Scripting on Multiple Monitor Setup after Code Completion window

$
0
0

When scripting in TestComplete 10  after the Code Completion pops up (either through autocomplete or by pressing CTRL+Space) and then Code Completion closes (by selecting an item, finishing typing the item, or by pressing Esc to close it), TestComplete then loses focus and I can no longer type in the scripting window.  This happens every time the Code Completion window pops up.  Where the focus goes has not been consistent, but the Explorer bar seems to be the most common.

 

The issue happens while I am using a multiple monitor setup.  If I switch my display to only be on one monitor, I have not observed that TC10 loses focus.

 

Another workaround that appears to work is if I leave the object spy open on the same monitor as the scripting window, then I don't lose focus.  If I move the object spy over to the other monitor, I will again lose focus after the Code Completion window closes.

 

Has anyone else encountered this issue?  If so, how did you resolve it?

 

TC10 Version = 10.60.3387.7

custom properties for endpoints only working with default environment?

$
0
0

I have a rest project and we have two custom properties defined at the project level - endpoint and securedEndpoint as some of our web services require https and thus use a different endpoint.

 

When using the default environment, all is fine. When I create a new environment and copy all properties, and update the endpoint and securedEndpoint custom properties to have the correct values, all of my tests that require the https endpoint fail.

 

For these webservice requests, when the default environment is selected, the endpoint value for that teststep shows ${#Project#securedEndpoint}. When I switch to any other environment, it shows ${#Project#endpoint}.

 

What can I do so that ${#Project#securedEndpoint} will be used correctly when needed for all environments? We want to run our project against several environments and we do not want to update the custom variables every time.


Reading multiple files using eval

$
0
0

Hi All ,

 

I have 2 files to be included from commonfiles folder as shown in main(). How do i read both in my include function ?. Please look into this.

 

function main()
{
eval(Include("..\\..\\CommonFiles\\GlobalConstants.js"));
eval(Include("..\\..\\CommonFiles\\WindowsConstants.js"));
}
function Include(filepath)
{
var objfSO = new ActiveXObject("Scripting.FileSystemObject");
var readFile = objfSO.OpenTextFile(filepath, 1);
while(!readFile.AtEndOfStream){
var readLine = readFile.ReadLine();
Log.Message(readLine);
}
readFile.Close();
return readLine;
} // End Include()

How to configure TestComplete for Slower Playback Options

$
0
0

Dear All,

 

I'm tried to configure TestComplete to slower playback action but could not achieve it because cannot find the Project Editor Windows.

 

Please help. Thanks.

Maximize the screen just when running a web browser.

$
0
0

Hi Guys,

 

I'm running a crossbrowser test between some web browsers and some virtual browsers (mobile), but I have an issue...

What I need is, when I'm going to run the web browsers, I need the screen maximized, and I've been able to do that, but the problem is, the virtual browsers run on Chrome, so, if I define an operation to maximize the screen for chrome, the virtual browsers are maximized as well and I don't need that, I just need the web browsers maximized.

 

Could you guys please help me? How can I maximize just the web browsers and keep the virtual browsers at the same screen resolution?

 

 

Follow below a screenshot for a better understanding, about what I'm doing today:

 

maximize.png

 

 

 

 

Thank you very much!

Does/Will Testcomplete support Infragistics 15.1?

$
0
0

Hello,

 

We are looking to upgrade to Infragistics 15.1 and currently have over 1500 tests so we are trying to anticipate how this upgrade will affect our automation lab. I am aware TestComplete only supports certain controls for Infragstics, but will these controls still be supported for version 15.1?

 

Thanks!

No Data Source Visible in Test Step

$
0
0

I'm sure it's a rookie mistake.

 

I've successfully configured and tested the connection to my SQL Data source but the data source isn't appearing in the request parameter drop down. See attached.

 

Do you have a check list of newbie mistakes in this area?

 

Thanks

 

 

 

 

datasource2.png

 

How to kill the current running process?

$
0
0

Guys,

 

I need to kill the current running process, due to I've been running some virtual browses one after the other, but the virtual browsers runs at chrome, so, when the first virtual browser runs and finishes the test its ok, but then the second is going to run, but the process it is not still closed and the virtual browser does not open. So, could you guys help me? How can I kill the current running process?

I searched for it here in the forum, but I could not find anything that answers my question.

 

Here is a screenshot that could help to a better understanding:

 

virtualbrowser_running.png

 

 

 

Thank you very much!

Can't get the FindChild command to work

$
0
0

01: function ViewAllTrayItems(theLink,browser,env,crBrowser,dWait)

02: {
03: theTrays=theLink.Panel("middle").Panel("middleInner").Panel("onboardingDeckContainer").Panel("cardDeck")
04: findTray=theTrays.Section("sbTray19").FindChild("Link",0,2)
05: if(findTray.Exists)
06:   {findTray.Click()}
07: else
08:   {Log.Error("Nope, didn't find it.")}

09: theTrays.Section("sbTray19").Link(0).Click()

 

The above code is supposed to find a link in Section("sbTray19") with the value of 0 in line 04.  Yet it does not do so.  The "the trays.Section("sbTrays19").Link(0).Click()" command in line 09 works just fine so the object does exist, I just cannot find it using the FindChild command.  I'd also like to have it use a varible with the "sbtray" aspect (i.e. "subtray*") of the code as the numbers may vary.   Can someone please give me some idea of what I am doing incorrectly?  


Is there a way to disable passed checkpoints from logging?

$
0
0

I have a test that runs quite a few checkpoints and dont need it to post all the passed checkpoints to the log. is there a way to shut that off?

Clear Memory while test complete is running

$
0
0

Hi everybody

 

Can someone tell me how to clear memory while my project is running?

 

It is because  testcomplete sometimes stops when there are some programs which occupies  a lot of memory.

 

Thanks

How to round a decimal value when working with context.expand number values?

$
0
0

I'm to verify values of an equation that is happening on the back end.

Example Values:
wages = 29250
divby = 11670
Should Equal = 2.5064267352 //which it does

 

QUESTION:  I need the result value I"m asserting is to = 2.51

 

def testValuea = context.expand( '${Properties#a}' ) as int //--11670
def testValueb = context.expand( '${Properties#b}' ) as int //--29250

 

result = (testValueb / testValuea)*100

//now my value is 250.64267352

 

QUESTION:  How do I get this to round to (3)?
Not sure where to use .Round(3) or if to use something else.

 

Thank you,
Rob

 

 

Getting Name of Failed test in OnLogError Event

$
0
0

How do you get the name of the test which initiated the error log posting? The sender in the following code is always "GeneralEvents". The callstack would be even better.

 

function GeneralEvents_OnLogError(Sender, LogParams){

    var body = "Sender: " + Sender.Name + "\r" + "Message: " + LogParams.MessageText + "\r" + "Additional Text:" + LogParams.AdditionalText;
    
    SendMail(Project.Variables.MailRecipientList, "relayserver", "Automated Test Server", "donotreply@sbdinc.com", "Automated Test Failed", body);

}

Picture.SaveToClipboard

$
0
0

Team,
I have a script that opens excel and saves a file generated from the AUT, to a network drive and then closes excel to use the DDT function I have below.

function ReadExcelHeaderFile(PathFileName, TargetText, TargetCell)
//Search for column header text in an Excel at a known column number
//Argument (path and filename, text to search for, column number)
{
  DDT.ExcelDriver((PathFileName), "Sheet1");
    if ( (TargetText) == (DDT.CurrentDriver.ColumnName(TargetCell)) )

After I run through the above DDT compares I want to log that all pass. But the problem is excel is closed so I can’t add the active window or an image of excel before it was closed and excel most be closed to run the DDT function.

 

 

I like to record the pass with a picture of the application running and a message. Log.Picture(Sys.Desktop.ActiveWindow(), "AR2 PASS - The”);

 

I was going to save the picture/image to the clipboard of excel running, as outlined in the help below.

Pict=(Sys.Desktop.ActiveWindow());

---help file-----
Description
The Picture.SaveToClipboard method lets you save the image represented by the Picture object to the Clipboard in order to paste the image somewhere else later.
Note that you can also copy the image to the clipboard by assigning the corresponding Picture object to the Sys.Clipboard property.
--------
My question is how do I save an image of excel running and after I complete all the DDT checks and it passes I can log the pass with the image of excel that is now closed?  The help is not helping.

 

TC=10.30

Browser=firefox 24.3

ScriptLanguage=JScript

Thanks for any pointers.

BMD

Viewing all 26529 articles
Browse latest View live