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

No longer able to install /launch instrumented ipa after developer profile certificate expired

$
0
0

 

Hello All

I have a blocking issue with not being able to install and launch instrumented builds using my renewed developer .cer file and exported PEM file.

On 8/19 it appears that my apple developer account expired. I installed the new certificate from the apple DEV portal, and exported the .cer and the .p12 private key, I followed the exact instructions to use open ssl to create the .pem file.

I then use these new credentials to instrument the new build. The instrumentation is successful, but when I try to launch it using script or from within the TC, or iTunes, the installation fails.

Right now I am blocked with runs scripts on new builds, build pre 8/20 is still working but I require scripts to be run on new current builds.

Anyone experienced this issue before? I would be interested in any feedback or comments to assit in resolving this issue.


TestSuites set for parallel execution never finish if all test cases within are disabled

$
0
0

This is more of a cosmetic issue, but sometimes I run into this issue accidentally.

 

If test suite is configured for parallel execution of test cases and if all test cases within are disabled, ideally this test suite should not be run at all. But Ready API 1.4.0(and perhaps all previous versions as well) tries to run this test suite and gets stuck. In other words test run never finishes. If the test suite itself is disabled, then this issue won't occur.

 

Sometimes while working with large projects with a number of test suites, I sometimes disable test cases within to avoid a known issue and sometimes this causes ending up disabling all test cases in a small test suite. 

 

But when I try to run all test within a project, this causes the test run to never finish.

 

 

Steps to reproduce

1. Create a simple project with two test suites.

2. Configure at least one test suite to run test cases in parallel.

3. Disable all test cases within this test suite(one mentioned in point 2)

4. Select the project and click Run

 

The test suite with all test cases disabled never finishes the test run.

 

Please see whether this deserves a fix, not urgent at all but still "a nice to have" fix in my humble opinion

 

Thanks & Regards,

Gilu Gopi

How to refresh a DB Table Variable in a Loop

$
0
0

Hi,

 

I would like to continue to a second KeywordTests base on a field that is update in a Database.

 

So in terms of word.

 

I execute Test1 and would like to execute Test2 only if the Field <Statut > in the Table CPF_Statu is equel to <P>.

 

I can access to the field in the Database using DB Table variable type but it never refresh the content of the field. It stays always on the same first read.

 

How can I do that by script or by KeywordTests ?

 

Best regards

Same application different URLs.

$
0
0

Within my company we have two enviroments one for qa and one for development.

We end up testing the same applications in each enviroment and would like to share testing scripts... however we can't seem to get the handed off scripts to work.

Here is the scenario.
1) test script is written to login to https://application.dev.com & then do some minor addational functions - this works.
2) the same script is provided to qa
3) the test scriptis updated to have https://application.qa.com as the starting URL
4) the script fails to run in their enviroment

Is there anyway to share scripts that require simply changes or is this not possible?

Thanks,

Can we add screen shot (pictures) to a folder on C drive while running test script

$
0
0

I need to take screen shots during execution of our test scripts and save these screen shots (aka picture) in different folders on hard drive. I have tried the Sys.Desktop.Picture(x,y,w,h) method to take the picture but I can't find a method to allow me to save

it on hard drive in specific folder. I can however, do :

     

                Regions.AddPicture(mypic,"Step_1_Pic");

 

or

               Log.AddPicture(mypic,"Step_1_Pic");

 

is there a way to put these pictures in a folder on C drive, for example, C:\myTestPics\

 

thanks

Tvirtualtreeview is not working for TC 11

$
0
0

Hi ,

         I am having license for  Latest TC 11 But we are not able to identify   the child elements of TVIRTUALTREEVIEW method.

 

What i want to do with that targeted object is .

 

 

1) Click on the child node (On checkbox)

 

2) Verify weather root node is able to clicked or not .

 

 

help me with this .. I added the tree view in Win32 tree view list but no luck .I have tried all functionalities which have been published in Support, community forums Still not able to identifying them .. please help it on urgent basis as it is blocker

 

 

 

 

 

 

 

how to handel the multiple instances of same application,in name mapping

$
0
0

how to handel the multiple instances of same application,in name mapping

what is the use of project variables ,can anyone explain where we use this project variables


Writing scripts on one machine while identifying objects in another machine

$
0
0

Hi All,

 

I have a set up where in we run our application on one machine, say A and have it shadowed or mirrored onto another machine, say B.

 

Now while testing, I need to perform some actions on machine A and then come to machine B and perform few more actions. 

 

Can this kind of a scenario be tested using Test Complete? If yes, could you also provide with a solution of how to get this done?

 

Thanks,

Nimith

Datasource path and worksheet gets empty after close

$
0
0

Hi,

 

I got a problem since I upgraded to Ready API 1.4.0.

 

1. Create a new Datasource

2. Choose type Excel

3. Browse a file on my local hard drive

4. Close the tab with the datasource

5. Open the datasource again, now the path to the file is empty

 

Same thing happens if I open an old datasource in my project. After close, and reopening - the path to file and worksheet is gone and I it keeps getting empty every time I close the tab with the datasource.

How to handle multiple instances of same application

$
0
0

I have a question,how to handle multiple instances of same application.

for example : if i open notepad three times,i need to enter a value in the first  opened one,next in third opened one,next second.how we can handle this type of scenarios

Find method- Is it possible to define property to be different than a specific value

$
0
0

Hi,

 

I want to use the FindChild method but 1 of required properties is not known.

I only know that this property have to be greater than a specfic value.

For example, I want to use a script like this:

(jscript)

var x = <value>;

var PropArr = new Array("Visible",  "ScreenLeft");

var ValArr = new Array(true, !x);

var child = wnd.FindChild(PropArr, ValArr, 15);

 

As described I need to find the child that its ScreenLeft property is greater that x.

Currently, I don't get the expected child.

Can you help?

 

Does JSON RegEx assertions support regex shortcuts

$
0
0

If I use JSON Path asseration for $..id and expected resutl is [121,130] the assertion passes. When using the JSON RegEx aseration I set JSON Path Expression to $..id[0] and RegEx to \d and expected result to true the assert fails. But if i set RegEx to [0-9]*, the assertion passes. It appears that REgEx in SoapUI 5.3 for Json RegEx asseration doesnt support regex shortcuts. When will short cuts be supported?

'Do you want to work in shared mode?' asked every time I open project and then "Access is denied"

$
0
0

We are working on a test suite as a company in separate offices. We have our suite on a VPN. Everytime I have opened Test Complete in the last two weeks it says "The project suite '___' is located on a network drive. Do you want to work with it in shared mode?" There is an option of "Remember the answer for this project suite and do not ask again." but it asks every time I open my project. It forces me to recreate a new folder to even look at the suite.

 

Then, when the project is opening it tells me "Access is denied". I can clearly see I have access to the VPN and am using other files in this shared folder. No one else is experiencing this issue using this same project.

 

Because of this, any changes I make cannot be saved. I can look at the tests and other people's results, but I can't do anything with our folder. I am the only one using Windows 10, although this was working the first week I was using Windows 10. 

 

Anyone have any ideas or seem something similar?

Try-Catch for Click Methods

$
0
0

I've written a jscript function for closing my application at the end of every test. It first tries to close the application by clicking buttons and, if that fails, calls the Close method. 

 

If the script fails to close the application through the UI, I don't want to log an error--just a warning. However, the script throws an error anyway. I tried surrounding in a Try/Catch, but I've learned that doesn't work with the TestComplete operations I'm performing. How should I go about this?  

 

Here's my script: 

try
  {
    Aliases.Informa_Cashiering_Client.CurrentTransaction.ApplicationWindow.Grid.FloatingContainerBorder.Grid.FloatingContainerHeader.Grid.stackPanel.Button_CloseApplication.ClickButton();
  } 
  catch (e)
  {
    Log.Warning("Unable to close through the UI"); 
  }
  if(myProcess.Exists){
    myProcess.Close(1000);  
  }

How to call some common Groovy code from multiple assertions?

$
0
0

I am really getting that hang of soapUI's scripting capabilities. They are totally groovy, indeed! :-)

 

I have meanwhile unified my test cases such, that they all execute the same code-snippet which loads a regex from a file and then asserts whether the received response matches that regex. The only thing that differs between all my test-cases is the name of the file from which to read the applicable regex. For each testcase there is one file containing the regexp that the response of that testcase has to match.

 

The next step in simplifying things would be that all assertions call the exactly same piece of code. I would then not have to copy-paste the same code into each Script Assertion's code field any more (or just some minimalistic of code icentical for all assertions, like

call common_assertion_code(<name-of-testcase>)

 

 

For this I still need the following pieces:

  1. Where should I best place such a piece of groovy code that is to be used by multiple test-suites?
  2. How can I call that common piece of code from the assertion's code-snippet?
  3. How do I access the TestCase's name from within the assertion's code-snippet?
  4. How can I pass than name from the calling assertion code to the called common code?

Regards,

M.

mapping : cancel a bind or change it

$
0
0

Hi,

 

I use mapped names in everything. Usually, I valid the default mapping, but I clicked too fast one time and bound a popup menu with an old different one.

 

How to cancel this mapping and affect a new one ?

 

Thank you in advance,

 

Mehdi

Lost help file favorites

$
0
0

SmartBear's help file is not one of the easiest I've used when you are looking for information.  Thankfully they have a favorites tab that you can attach particularly difficult to find topics.

 

That's all well and good, however, on installing the new version of TestComplete 11, my favorites list is empty.  I'm assuming that because SmartBear installs new versions to separate directories, that is the reason for the loss.

 

It was hard enough the first time to find some of the items I saved as favorites, and I most certainly do not want to was more time doing something that I've already accomplished.  I didn't see any obvious files that might contain this information that I could copy from old to new version; is anyone aware of how to get these favorites back?

 

Thanks

Bill

Can one load a properties-file via command-line option?

$
0
0

Is there an option to load specific properties via a command-line option?

 

We need to test our code in different configurations which require to load different properties-files on top of a common soapUI-project file, i.e. the test-suites and test-cases are the same (or rather: were parameterized) but a couple of top-level properties have to be added/adjusted depending on the configuration to be tested.

 

I am calling soapUI from our test ant-script in the following way:

 

 <exec executable="${testrunner.cmd}"
  failonerror="yes"
  failifexecutionfails="yes"
  >
  <arg line="-s ${suite_name} -I -r -i -j -M -f ${reportDir}-${report_name} ${soapUI.project}" />
  <!--  usage: testrunner [options] <soapui-project-file> -->
  <!--   -A   Turns on exporting of all results using folders instead of long filenames -->
  <!--   -a   Turns on exporting of all results -->
  <!--   -c <arg>   Sets the testcase -->
  <!--   -D <arg>   Sets system property with name=value -->
  <!--   -d <arg>   Sets the domain -->
  <!--   -e <arg>   Sets the endpoint -->
  <!--   -f <arg>   Sets the output folder to export results to -->
  <!--   -G <arg>   Sets global property with name=value  -->
  <!--   -H <arg>   Adds a custom HTTP Header to all outgoing requests -->
  <!--     (name=value), can be specified multiple times -->
  <!--   -h <arg>   Sets the host -->
  <!--   -I   Do not stop if error occurs, ignore them -->
  <!--   -i   Enables Swing UI for scripts -->
  <!--   -j   Sets the output to include JUnit XML reports -->
  <!--   -M   Creates a Test Run Log Report in XML format -->
  <!--   -m   Sets the maximum number of TestStep errors to save for each testcase -->
  <!--   -P <arg>   Sets or overrides project property with name=value  -->
  <!--   -p <arg>   Sets the password -->
  <!--   -r   Prints a small summary report -->
  <!--   -S   Saves the project after running the tests -->
  <!--   -s <arg>   Sets the testsuite  -->
  <!--   -t <arg>   Sets the soapui-settings.xml file to use -->
  <!--   -u <arg>   Sets the username -->
  <!--   -v <arg>   Sets password for soapui-settings.xml file -->
  <!--   -w <arg>   Sets the WSS password type, either 'Text' or 'Digest' -->
  <!--   -x <arg>   Sets project password for decryption if project is encrypted -->
  <!-- project file -->
 

 

 

However, that starts soapUI given a specific project file only (which contains a default set of properties) but does not add specific properties to it.

 

Thus, before running that script I always first need to open the project in soapUI, load the appropriate properties and save the project again (so that the project file now contains the correct default properties). Only then I can run our deploy-and-test-script.

 

But having to fire up soapUI each time beforehand is cumbersome, easily goes forgotten and partially defeats the purpose of having automated testing.

 

I know that one can set properties individually (using the -D option as described in the comment above) but we need to set a hole slew of properties each time and I want to avoid having to add these all to my test-script!

Jenkins 'Graph' does not count test cases 'nested' under 'Test Item' / 'Folder'.

$
0
0

Hello,

 

I am using Jenkins to execute my TestComplete Project Suite.  My tests are written in JScript.  Using a plugin, I am able to display a graph on Jenkins that tells me how many tests ran per execution (or build).  Please see Image 1 below. Green arrow is pointing towards Build# 114, which says I ran 7 scripts.

 

Image 1: Jenkins graph showing 7 Scripts ran for Build#114 

Jenkins 'Graph' displaying how many tests ran on Y-axis for which build number on X-axis.png

 

However, Image 2 below is a snapshot of my TestComplete Log for Build# 114.  As you can see I executed 10 scripts:

 

Image 2: TestComplete Log for Build #114.

Number of tests that was executed during the build..png

 

What's happenning is this: I am using TestComplete 10.5.  In my 'Test Item' window, when I click on 'New TestItem' and map a test case to it, that item gets counted in Jenkins as 1.

TestItemWindow.png

 

However when I add a 'Child Item' under that 'New Item', and map my test case to the 'Child Item', Jenkins doesn't count how many 'Child Items' were executed.  This makes it hard for me to group my tests and still be able to see on Jenkins how many scripts ran.

ChildItem.png

 

It's the same behavior if instead of creating 'New Item' I create a Folder and group my tests under it.  Jenkins only counts how many 'New Items'/ Folders are running in a project suite, not the number of 'Child Items'/items under a folder.

 

Can someone please help me on how I can make Jenkins tell me how many child items I am running?  Or something I can do in my TestComplete project suite, that will allow Jenkins to read the statistics better?  I want to be able to group my tests in TestComplete for better management, and be able to see my graph on Jenkins as well.

 

Pelase help!! Thanks in advance.

 

Viewing all 26529 articles
Browse latest View live